comparison lisp/emacs-lisp/easy-mmode.el @ 90851:31beec9ee600

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 751-770) - Update from CVS - Merge from emacs--rel--22 - Update from CVS: lisp/textmodes/sgml-mode.el: Revert last change. - Merge from gnus--rel--5.10 * emacs--rel--22 (patch 18-25) * gnus--rel--5.10 (patch 222-223) - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-208
author Miles Bader <miles@gnu.org>
date Thu, 24 May 2007 21:31:10 +0000
parents d7172f202ab8 461368ff4ff6
children f55f9811f5d7
comparison
equal deleted inserted replaced
90850:7d184cd91770 90851:31beec9ee600
101 The above three arguments can be skipped if keyword arguments are 101 The above three arguments can be skipped if keyword arguments are
102 used (see below). 102 used (see below).
103 103
104 BODY contains code to execute each time the mode is activated or deactivated. 104 BODY contains code to execute each time the mode is activated or deactivated.
105 It is executed after toggling the mode, 105 It is executed after toggling the mode,
106 and before running the hook variable `mode-HOOK'. 106 and before running the hook variable `MODE-hook'.
107 Before the actual body code, you can write keyword arguments (alternating 107 Before the actual body code, you can write keyword arguments (alternating
108 keywords and values). These following keyword arguments are supported (other 108 keywords and values). These following keyword arguments are supported (other
109 keywords will be passed to `defcustom' if the minor mode is global): 109 keywords will be passed to `defcustom' if the minor mode is global):
110 :group GROUP Custom group name to use in all generated `defcustom' forms. 110 :group GROUP Custom group name to use in all generated `defcustom' forms.
111 Defaults to MODE without the possible trailing \"-mode\". 111 Defaults to MODE without the possible trailing \"-mode\".
484 BASE-next also tries to make sure that the whole entry is visible by 484 BASE-next also tries to make sure that the whole entry is visible by
485 searching for its end (by calling ENDFUN if provided or by looking for 485 searching for its end (by calling ENDFUN if provided or by looking for
486 the next entry) and recentering if necessary. 486 the next entry) and recentering if necessary.
487 ENDFUN should return the end position (with or without moving point). 487 ENDFUN should return the end position (with or without moving point).
488 NARROWFUN non-nil means to check for narrowing before moving, and if 488 NARROWFUN non-nil means to check for narrowing before moving, and if
489 found, do widen first and then call NARROWFUN with no args after moving." 489 found, do `widen' first and then call NARROWFUN with no args after moving."
490 (let* ((base-name (symbol-name base)) 490 (let* ((base-name (symbol-name base))
491 (prev-sym (intern (concat base-name "-prev"))) 491 (prev-sym (intern (concat base-name "-prev")))
492 (next-sym (intern (concat base-name "-next"))) 492 (next-sym (intern (concat base-name "-next")))
493 (check-narrow-maybe 493 (check-narrow-maybe
494 (when narrowfun 494 (when narrowfun