aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2007-10-31 12:49:40 +0000
committerJuanma Barranquero2007-10-31 12:49:40 +0000
commit26e966803ca07cf77406ff6a568649ac5c670bb4 (patch)
treed2c2f4d83c6abf1f02b09754d5065d7da09fd66f
parent66eed8276dc18172f6945d7bcb03607d78d6acfb (diff)
downloademacs-26e966803ca07cf77406ff6a568649ac5c670bb4.tar.gz
emacs-26e966803ca07cf77406ff6a568649ac5c670bb4.zip
(strokes-alphabetic-lessp): Simplify. Doc fix.
(strokes-unload-hook): Remove function and variable. (strokes-unload-function): New-style unload function, adapted from `strokes-unload-hook'.
-rw-r--r--lisp/ChangeLog18
-rw-r--r--lisp/strokes.el14
2 files changed, 23 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cdd1822303d..c7d1b834125 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,6 +1,22 @@
12007-10-31 Juanma Barranquero <lekktu@gmail.com>
2
3 * strokes.el (strokes-alphabetic-lessp): Simplify. Doc fix.
4 (strokes-unload-hook): Remove function and variable.
5 (strokes-unload-function): New-style unload function, adapted
6 from `strokes-unload-hook'.
7
8 * emacs-lisp/cl.el (cl-cannot-unload): Remove function.
9 (cl-unload-hook): Remove variable.
10 (cl-unload-function): New-style unload function, adapted
11 from `cl-cannot-unload'.
12
13 * emacs-lisp/elp.el (elp-unload-hook): Remove function and variable.
14 (elp-unload-function): New-style unload function, adapted
15 from `elp-unload-hook'.
16
12007-10-31 Sean O'Rourke <sorourke@cs.ucsd.edu> 172007-10-31 Sean O'Rourke <sorourke@cs.ucsd.edu>
2 18
3 * emacs-lisp/find-func.el (find-library): use library at 19 * emacs-lisp/find-func.el (find-library): Use library at
4 point as default interactive argument. 20 point as default interactive argument.
5 21
62007-10-31 Juanma Barranquero <lekktu@gmail.com> 222007-10-31 Juanma Barranquero <lekktu@gmail.com>
diff --git a/lisp/strokes.el b/lisp/strokes.el
index de4123453f5..73e5594664a 100644
--- a/lisp/strokes.el
+++ b/lisp/strokes.el
@@ -1370,10 +1370,8 @@ If STROKES-MAP is not given, `strokes-global-map' will be used instead."
1370 (goto-char (point-min)))) 1370 (goto-char (point-min))))
1371 1371
1372(defun strokes-alphabetic-lessp (stroke1 stroke2) 1372(defun strokes-alphabetic-lessp (stroke1 stroke2)
1373 "T if command name for STROKE1 is less than STROKE2's in lexicographic order." 1373 "Return t if STROKE1's command name precedes STROKE2's in lexicographic order."
1374 (let ((command-name-1 (symbol-name (cdr stroke1))) 1374 (string-lessp (cdr stroke1) (cdr stroke2)))
1375 (command-name-2 (symbol-name (cdr stroke2))))
1376 (string-lessp command-name-1 command-name-2)))
1377 1375
1378(defvar strokes-mode-map 1376(defvar strokes-mode-map
1379 (let ((map (make-sparse-keymap))) 1377 (let ((map (make-sparse-keymap)))
@@ -1745,11 +1743,11 @@ Store XPM in buffer BUFNAME if supplied \(default is ` *strokes-xpm*'\)"
1745 ;; strokes-decode-buffer does a save-excursion. 1743 ;; strokes-decode-buffer does a save-excursion.
1746 (forward-char))) 1744 (forward-char)))
1747 1745
1748(defun strokes-unload-hook () 1746(defun strokes-unload-function ()
1747 "Unload the Strokes library."
1749 (strokes-mode -1) 1748 (strokes-mode -1)
1750 (remove-hook 'kill-emacs-query-functions 'strokes-prompt-user-save-strokes)) 1749 ;; continue standard unloading
1751 1750 nil)
1752(add-hook 'strokes-unload-hook 'strokes-unload-hook)
1753 1751
1754(run-hooks 'strokes-load-hook) 1752(run-hooks 'strokes-load-hook)
1755(provide 'strokes) 1753(provide 'strokes)