Search This Blog

Thursday, December 06, 2007

slime-close-parens-at-point

the default key binding of the function slime-close-parens-at-point is C-c C-q
but it's obsolete from slime-2.0_p20070816-r1,the comments in the source file are as following:

;; SLIME-CLOSE-PARENS-AT-POINT is obsolete:

;; It doesn't work correctly on the REPL, because there
;; BEGINNING-OF-DEFUN-FUNCTION and END-OF-DEFUN-FUNCTION is bound to
;; SLIME-REPL-MODE-BEGINNING-OF-DEFUN (and
;; SLIME-REPL-MODE-END-OF-DEFUN respectively) which compromises the
;; way how they're expect to work (i.e. END-OF-DEFUN does not signal
;; an UNBOUND-PARENTHESES error.)

;; Use SLIME-CLOSE-ALL-PARENS-IN-SEXP instead.


well,bind slime-close-all-parens-in-sexp to C-c C-q,and I can pretend that nothing happened in my world.

Tuesday, October 02, 2007

to thinkpaders,about tp-fancontrol

from a certain version of thinkpad_acpi,fan_control is disabled by default,as Documentation/thinkpad-acpi.txt said:

NOTE NOTE NOTE: fan control operations are disabled by default for
safety reasons. To enable them, the module parameter "fan_control=1"
must be given to thinkpad-acpi.

so the tp-fancontrol daemon won't work any more if the thinkpad_acpi module isn't told that it should enable the fan_control.

let's do that:

#vim /etc/modules.d/thinkpad_acpi

then add the following line:
options thinkpad_acpi fan_control=1

:wq

#update-modules

now tp-fancontrol should work again.

Thursday, September 13, 2007

Yodaesque

what?yes!yodaesque!
Practical Common Lisp,Page 285,it reads:
"Compared to the clauses I’ve described so far, with their prepositions and subclauses, do is a model of Yodaesque simplicity."

and...the footnote:
“No! Try not. Do . . . or do not. There is no try.” —Yoda, The Empire Strikes Back

Orz...