diff options
40 files changed, 315 insertions, 201 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index f1a3cdb6235..90beb08233d 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-10-23 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * custom.texi (Hooks): Clarify that -hooks is deprecated. | ||
| 4 | |||
| 1 | 2012-10-23 Chong Yidong <cyd@gnu.org> | 5 | 2012-10-23 Chong Yidong <cyd@gnu.org> |
| 2 | 6 | ||
| 3 | * kmacro.texi (Edit Keyboard Macro): Fix typo. | 7 | * kmacro.texi (Edit Keyboard Macro): Fix typo. |
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi index 68219d7890f..a614126dbc0 100644 --- a/doc/emacs/custom.texi +++ b/doc/emacs/custom.texi | |||
| @@ -838,7 +838,8 @@ is a normal hook. | |||
| 838 | 838 | ||
| 839 | @cindex abnormal hook | 839 | @cindex abnormal hook |
| 840 | A few hooks are @dfn{abnormal hooks}. Their names end in | 840 | A few hooks are @dfn{abnormal hooks}. Their names end in |
| 841 | @samp{-hooks} or @samp{-functions}, instead of @samp{-hook}. What | 841 | @samp{-functions}, instead of @samp{-hook} (some old code may also use |
| 842 | the deprecated suffix @samp{-hooks}). What | ||
| 842 | makes these hooks abnormal is the way its functions are | 843 | makes these hooks abnormal is the way its functions are |
| 843 | called---perhaps they are given arguments, or perhaps the values they | 844 | called---perhaps they are given arguments, or perhaps the values they |
| 844 | return are used in some way. For example, | 845 | return are used in some way. For example, |
| @@ -1735,11 +1736,11 @@ and @kbd{C-c p} in Texinfo mode: | |||
| 1735 | 1736 | ||
| 1736 | @example | 1737 | @example |
| 1737 | (add-hook 'texinfo-mode-hook | 1738 | (add-hook 'texinfo-mode-hook |
| 1738 | '(lambda () | 1739 | (lambda () |
| 1739 | (define-key texinfo-mode-map "\C-cp" | 1740 | (define-key texinfo-mode-map "\C-cp" |
| 1740 | 'backward-paragraph) | 1741 | 'backward-paragraph) |
| 1741 | (define-key texinfo-mode-map "\C-cn" | 1742 | (define-key texinfo-mode-map "\C-cn" |
| 1742 | 'forward-paragraph))) | 1743 | 'forward-paragraph))) |
| 1743 | @end example | 1744 | @end example |
| 1744 | 1745 | ||
| 1745 | @node Modifier Keys | 1746 | @node Modifier Keys |
diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi index 55c3ef4e09e..70ddb81c776 100644 --- a/doc/lispintro/emacs-lisp-intro.texi +++ b/doc/lispintro/emacs-lisp-intro.texi | |||
| @@ -17909,10 +17909,10 @@ file that set values: | |||
| 17909 | @group | 17909 | @group |
| 17910 | ;; Set calendar highlighting colors | 17910 | ;; Set calendar highlighting colors |
| 17911 | (setq calendar-load-hook | 17911 | (setq calendar-load-hook |
| 17912 | '(lambda () | 17912 | (lambda () |
| 17913 | (set-face-foreground 'diary-face "skyblue") | 17913 | (set-face-foreground 'diary-face "skyblue") |
| 17914 | (set-face-background 'holiday-face "slate blue") | 17914 | (set-face-background 'holiday-face "slate blue") |
| 17915 | (set-face-foreground 'holiday-face "white"))) | 17915 | (set-face-foreground 'holiday-face "white"))) |
| 17916 | @end group | 17916 | @end group |
| 17917 | @end smallexample | 17917 | @end smallexample |
| 17918 | 17918 | ||
| @@ -20947,7 +20947,7 @@ not yet seen, @code{mapcar} and @code{lambda}. | |||
| 20947 | @group | 20947 | @group |
| 20948 | (defun one-fiftieth (full-range) | 20948 | (defun one-fiftieth (full-range) |
| 20949 | "Return list, each number one-fiftieth of previous." | 20949 | "Return list, each number one-fiftieth of previous." |
| 20950 | (mapcar '(lambda (arg) (/ arg 50)) full-range)) | 20950 | (mapcar (lambda (arg) (/ arg 50)) full-range)) |
| 20951 | @end group | 20951 | @end group |
| 20952 | @end smallexample | 20952 | @end smallexample |
| 20953 | 20953 | ||
| @@ -21168,7 +21168,7 @@ and the second argument is @code{full-range}, which will be bound to | |||
| 21168 | The whole expression looks like this: | 21168 | The whole expression looks like this: |
| 21169 | 21169 | ||
| 21170 | @smallexample | 21170 | @smallexample |
| 21171 | (mapcar '(lambda (arg) (/ arg 50)) full-range)) | 21171 | (mapcar (lambda (arg) (/ arg 50)) full-range)) |
| 21172 | @end smallexample | 21172 | @end smallexample |
| 21173 | 21173 | ||
| 21174 | @xref{Mapping Functions, , Mapping Functions, elisp, The GNU Emacs | 21174 | @xref{Mapping Functions, , Mapping Functions, elisp, The GNU Emacs |
| @@ -21840,7 +21840,7 @@ each column." | |||
| 21840 | @group | 21840 | @group |
| 21841 | (defun one-fiftieth (full-range) | 21841 | (defun one-fiftieth (full-range) |
| 21842 | "Return list, each number of which is 1/50th previous." | 21842 | "Return list, each number of which is 1/50th previous." |
| 21843 | (mapcar '(lambda (arg) (/ arg 50)) full-range)) | 21843 | (mapcar (lambda (arg) (/ arg 50)) full-range)) |
| 21844 | @end group | 21844 | @end group |
| 21845 | @end smallexample | 21845 | @end smallexample |
| 21846 | 21846 | ||
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index a767bbf1fce..26765e7a384 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-10-23 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * hooks.texi (Standard Hooks): Clarify that -hooks is deprecated. | ||
| 4 | |||
| 1 | 2012-10-23 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2012-10-23 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | Fix outdated timestamp documentation in Elisp manual (bug#12706). | 7 | Fix outdated timestamp documentation in Elisp manual (bug#12706). |
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index c94e46dad18..623106b6d06 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi | |||
| @@ -978,7 +978,7 @@ anonymous function by quoting it as a list: | |||
| 978 | @example | 978 | @example |
| 979 | @group | 979 | @group |
| 980 | (defun double-property (symbol prop) | 980 | (defun double-property (symbol prop) |
| 981 | (change-property symbol prop '(lambda (x) (* 2 x)))) | 981 | (change-property symbol prop (lambda (x) (* 2 x)))) |
| 982 | @end group | 982 | @end group |
| 983 | @end example | 983 | @end example |
| 984 | 984 | ||
diff --git a/doc/lispref/hooks.texi b/doc/lispref/hooks.texi index 7c91b51b290..a7f01243641 100644 --- a/doc/lispref/hooks.texi +++ b/doc/lispref/hooks.texi | |||
| @@ -17,11 +17,11 @@ arguments and their values are completely ignored. The recommended way | |||
| 17 | to put a new function on such a hook is to call @code{add-hook}. | 17 | to put a new function on such a hook is to call @code{add-hook}. |
| 18 | @xref{Hooks}, for more information about using hooks. | 18 | @xref{Hooks}, for more information about using hooks. |
| 19 | 19 | ||
| 20 | The variables whose names end in @samp{-hooks} or @samp{-functions} are | 20 | The variables whose names end in @samp{-functions} are usually @dfn{abnormal |
| 21 | usually @dfn{abnormal hooks}; their values are lists of functions, but | 21 | hooks} (some old code may also use the deprecated @samp{-hooks} suffix); their |
| 22 | these functions are called in a special way (they are passed arguments, | 22 | values are lists of functions, but these functions are called in a special way |
| 23 | or their values are used). The variables whose names end in | 23 | (they are passed arguments, or their return values are used). The variables |
| 24 | @samp{-function} have single functions as their values. | 24 | whose names end in @samp{-function} have single functions as their values. |
| 25 | 25 | ||
| 26 | This is not an exhaustive list, it only covers the more general hooks. | 26 | This is not an exhaustive list, it only covers the more general hooks. |
| 27 | For example, every major mode defines a hook named | 27 | For example, every major mode defines a hook named |
diff --git a/doc/lispref/loading.texi b/doc/lispref/loading.texi index aa243185359..77a31cfde7a 100644 --- a/doc/lispref/loading.texi +++ b/doc/lispref/loading.texi | |||
| @@ -897,8 +897,8 @@ It then restores any autoloads formerly associated with those symbols. | |||
| 897 | 897 | ||
| 898 | Before restoring the previous definitions, @code{unload-feature} runs | 898 | Before restoring the previous definitions, @code{unload-feature} runs |
| 899 | @code{remove-hook} to remove functions in the library from certain | 899 | @code{remove-hook} to remove functions in the library from certain |
| 900 | hooks. These hooks include variables whose names end in @samp{hook} | 900 | hooks. These hooks include variables whose names end in @samp{-hook} |
| 901 | or @samp{-hooks}, plus those listed in | 901 | (or the deprecated suffix @samp{-hooks}), plus those listed in |
| 902 | @code{unload-feature-special-hooks}, as well as | 902 | @code{unload-feature-special-hooks}, as well as |
| 903 | @code{auto-mode-alist}. This is to prevent Emacs from ceasing to | 903 | @code{auto-mode-alist}. This is to prevent Emacs from ceasing to |
| 904 | function because important hooks refer to functions that are no longer | 904 | function because important hooks refer to functions that are no longer |
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 8b5e3da493a..4e4d700aade 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -70,9 +70,9 @@ called. You can use @code{add-hook} to add a function to an abnormal | |||
| 70 | hook, but you must write the function to follow the hook's calling | 70 | hook, but you must write the function to follow the hook's calling |
| 71 | convention. | 71 | convention. |
| 72 | 72 | ||
| 73 | By convention, abnormal hook names end in @samp{-functions} or | 73 | By convention, abnormal hook names end in @samp{-functions}. If the |
| 74 | @samp{-hooks}. If the variable's name ends in @samp{-function}, then | 74 | variable's name ends in @samp{-function}, then its value is just a single |
| 75 | its value is just a single function, not a list of functions. | 75 | function, not a list of functions. |
| 76 | 76 | ||
| 77 | @menu | 77 | @menu |
| 78 | * Running Hooks:: How to run a hook. | 78 | * Running Hooks:: How to run a hook. |
diff --git a/doc/misc/dbus.texi b/doc/misc/dbus.texi index 865e99a3aa6..1f9a401df90 100644 --- a/doc/misc/dbus.texi +++ b/doc/misc/dbus.texi | |||
| @@ -1981,7 +1981,7 @@ usually not desired. D-Bus errors in events can be made visible by | |||
| 1981 | setting the variable @code{dbus-debug} to @code{t}. They can also be | 1981 | setting the variable @code{dbus-debug} to @code{t}. They can also be |
| 1982 | handled by a hook function. | 1982 | handled by a hook function. |
| 1983 | 1983 | ||
| 1984 | @defvar dbus-event-error-hooks | 1984 | @defvar dbus-event-error-functions |
| 1985 | This hook variable keeps a list of functions, which are called when a | 1985 | This hook variable keeps a list of functions, which are called when a |
| 1986 | D-Bus error happens in the event handler. Every function must accept | 1986 | D-Bus error happens in the event handler. Every function must accept |
| 1987 | two arguments, the event and the error variable caught in | 1987 | two arguments, the event and the error variable caught in |
| @@ -1997,7 +1997,7 @@ Example: | |||
| 1997 | (message "my-dbus-event-error-handler: %S %S" event error) | 1997 | (message "my-dbus-event-error-handler: %S %S" event error) |
| 1998 | (signal 'file-error (cdr error)))) | 1998 | (signal 'file-error (cdr error)))) |
| 1999 | 1999 | ||
| 2000 | (add-hook 'dbus-event-error-hooks 'my-dbus-event-error-handler) | 2000 | (add-hook 'dbus-event-error-functions 'my-dbus-event-error-handler) |
| 2001 | @end lisp | 2001 | @end lisp |
| 2002 | @end defvar | 2002 | @end defvar |
| 2003 | 2003 | ||
diff --git a/doc/misc/ede.texi b/doc/misc/ede.texi index 046cdc99414..1299f2ff062 100644 --- a/doc/misc/ede.texi +++ b/doc/misc/ede.texi | |||
| @@ -1248,7 +1248,7 @@ detection scheme works like this: | |||
| 1248 | 1248 | ||
| 1249 | @table @asis | 1249 | @table @asis |
| 1250 | @item Step 1: | 1250 | @item Step 1: |
| 1251 | @code{find-file-hooks} calls @code{ede-turn-on-hook} on BUFFER. | 1251 | @code{find-file-hook} calls @code{ede-turn-on-hook} on BUFFER. |
| 1252 | @item Step 2: | 1252 | @item Step 2: |
| 1253 | @code{ede-turn-on-hook} turns on @code{ede-minor-mode} | 1253 | @code{ede-turn-on-hook} turns on @code{ede-minor-mode} |
| 1254 | @item Step 3: | 1254 | @item Step 3: |
diff --git a/doc/misc/ediff.texi b/doc/misc/ediff.texi index 01349e31468..0afcdd923d6 100644 --- a/doc/misc/ediff.texi +++ b/doc/misc/ediff.texi | |||
| @@ -1248,7 +1248,7 @@ This hook is run just before @code{ediff-quit-hook}. This is a good | |||
| 1248 | place to do various cleanups, such as deleting the variant buffers. | 1248 | place to do various cleanups, such as deleting the variant buffers. |
| 1249 | Ediff provides a function, @code{ediff-janitor}, as one such possible | 1249 | Ediff provides a function, @code{ediff-janitor}, as one such possible |
| 1250 | hook, which you can add to @code{ediff-cleanup-hook} with | 1250 | hook, which you can add to @code{ediff-cleanup-hook} with |
| 1251 | @code{add-hooks}. | 1251 | @code{add-hook}. |
| 1252 | 1252 | ||
| 1253 | @findex ediff-janitor | 1253 | @findex ediff-janitor |
| 1254 | This function kills buffers A, B, and, possibly, C, if these buffers aren't | 1254 | This function kills buffers A, B, and, possibly, C, if these buffers aren't |
diff --git a/doc/misc/forms.texi b/doc/misc/forms.texi index bcb8d8974ea..11c3782dd7e 100644 --- a/doc/misc/forms.texi +++ b/doc/misc/forms.texi | |||
| @@ -170,8 +170,8 @@ of the buffer are parsed using the specifications in | |||
| 170 | @code{forms-format-list}, and the data file is updated. If the record | 170 | @code{forms-format-list}, and the data file is updated. If the record |
| 171 | has fields that aren't included in the display, they are not changed. | 171 | has fields that aren't included in the display, they are not changed. |
| 172 | 172 | ||
| 173 | @vindex forms-mode-hooks | 173 | @vindex forms-mode-hook |
| 174 | Entering Forms mode runs the normal hook @code{forms-mode-hooks} to | 174 | Entering Forms mode runs the normal hook @code{forms-mode-hook} to |
| 175 | perform user-defined customization. | 175 | perform user-defined customization. |
| 176 | 176 | ||
| 177 | To save any modified data, you can use @kbd{C-x C-s} | 177 | To save any modified data, you can use @kbd{C-x C-s} |
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index afc324e3fb4..a9cd0d3567c 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi | |||
| @@ -3148,7 +3148,7 @@ following is added to a group parameter | |||
| 3148 | 3148 | ||
| 3149 | @lisp | 3149 | @lisp |
| 3150 | (gnus-summary-prepared-hook | 3150 | (gnus-summary-prepared-hook |
| 3151 | '(lambda nil (local-set-key "d" (local-key-binding "n")))) | 3151 | (lambda nil (local-set-key "d" (local-key-binding "n")))) |
| 3152 | @end lisp | 3152 | @end lisp |
| 3153 | 3153 | ||
| 3154 | when the group is entered, the 'd' key will not mark the article as | 3154 | when the group is entered, the 'd' key will not mark the article as |
diff --git a/doc/misc/mh-e.texi b/doc/misc/mh-e.texi index f6adc435789..e59b312889d 100644 --- a/doc/misc/mh-e.texi +++ b/doc/misc/mh-e.texi | |||
| @@ -429,7 +429,7 @@ for a description about @dfn{normal hooks} and @dfn{abnormal hooks}. | |||
| 429 | MH-E uses normal hooks in nearly all cases, so you can assume that we | 429 | MH-E uses normal hooks in nearly all cases, so you can assume that we |
| 430 | are talking about normal hooks unless we explicitly mention that a | 430 | are talking about normal hooks unless we explicitly mention that a |
| 431 | hook is abnormal. We also follow the conventions described in that | 431 | hook is abnormal. We also follow the conventions described in that |
| 432 | section: the name of the abnormal hooks end in @code{-hooks} and all | 432 | section: the name of the abnormal hooks end in @code{-functions} and all |
| 433 | the rest of the MH-E hooks end in @code{-hook}. You can add hooks with | 433 | the rest of the MH-E hooks end in @code{-hook}. You can add hooks with |
| 434 | either @code{customize-option} or @code{add-hook}. | 434 | either @code{customize-option} or @code{add-hook}. |
| 435 | 435 | ||
| @@ -3749,9 +3749,9 @@ when you press @key{TAB} when prompted for a folder name. | |||
| 3749 | 3749 | ||
| 3750 | @findex mh-search-p | 3750 | @findex mh-search-p |
| 3751 | @kindex k | 3751 | @kindex k |
| 3752 | @vindex mh-kill-folder-suppress-prompt-hooks | 3752 | @vindex mh-kill-folder-suppress-prompt-functions |
| 3753 | 3753 | ||
| 3754 | The hook @code{mh-kill-folder-suppress-prompt-hooks} is an abnormal | 3754 | The hook @code{mh-kill-folder-suppress-prompt-functions} is an abnormal |
| 3755 | hook run at the beginning of the command @kbd{k}. The hook functions | 3755 | hook run at the beginning of the command @kbd{k}. The hook functions |
| 3756 | are called with no arguments and should return a non-nil value to | 3756 | are called with no arguments and should return a non-nil value to |
| 3757 | suppress the normal prompt when you remove a folder. This is useful | 3757 | suppress the normal prompt when you remove a folder. This is useful |
diff --git a/doc/misc/sem-user.texi b/doc/misc/sem-user.texi index 9f4dc72fea3..9d6fb11db50 100644 --- a/doc/misc/sem-user.texi +++ b/doc/misc/sem-user.texi | |||
| @@ -277,7 +277,7 @@ variable. This allows SemanticDB to save tag caches in directories | |||
| 277 | controlled by them. | 277 | controlled by them. |
| 278 | @end defvar | 278 | @end defvar |
| 279 | 279 | ||
| 280 | @deffn Option semanticdb-save-database-hooks | 280 | @deffn Option semanticdb-save-database-functions |
| 281 | Abnormal hook run after a database is saved. Each function is called | 281 | Abnormal hook run after a database is saved. Each function is called |
| 282 | with one argument, the object representing the database recently | 282 | with one argument, the object representing the database recently |
| 283 | written. | 283 | written. |
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 530b8fdd6c2..46f99acbb87 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -3007,10 +3007,10 @@ checksum. | |||
| 3007 | 3007 | ||
| 3008 | @lisp | 3008 | @lisp |
| 3009 | (add-hook | 3009 | (add-hook |
| 3010 | 'find-file-hooks | 3010 | 'find-file-hook |
| 3011 | '(lambda () | 3011 | (lambda () |
| 3012 | (when (file-remote-p default-directory) | 3012 | (when (file-remote-p default-directory) |
| 3013 | (set (make-local-variable 'file-precious-flag) t)))) | 3013 | (set (make-local-variable 'file-precious-flag) t)))) |
| 3014 | @end lisp | 3014 | @end lisp |
| 3015 | @end itemize | 3015 | @end itemize |
| 3016 | 3016 | ||
| @@ -3126,7 +3126,7 @@ into your @file{~/.emacs}: | |||
| 3126 | (setq mode-line-format | 3126 | (setq mode-line-format |
| 3127 | (format-mode-line mode-line-format 'font-lock-warning-face)))) | 3127 | (format-mode-line mode-line-format 'font-lock-warning-face)))) |
| 3128 | 3128 | ||
| 3129 | (add-hook 'find-file-hooks 'my-mode-line-function) | 3129 | (add-hook 'find-file-hook 'my-mode-line-function) |
| 3130 | (add-hook 'dired-mode-hook 'my-mode-line-function) | 3130 | (add-hook 'dired-mode-hook 'my-mode-line-function) |
| 3131 | @end lisp | 3131 | @end lisp |
| 3132 | @end ifset | 3132 | @end ifset |
| @@ -3159,10 +3159,10 @@ should put it into your @file{~/.emacs}: | |||
| 3159 | 3159 | ||
| 3160 | (add-hook | 3160 | (add-hook |
| 3161 | 'dired-mode-hook | 3161 | 'dired-mode-hook |
| 3162 | '(lambda () | 3162 | (lambda () |
| 3163 | (setq | 3163 | (setq |
| 3164 | mode-line-buffer-identification | 3164 | mode-line-buffer-identification |
| 3165 | my-mode-line-buffer-identification))) | 3165 | my-mode-line-buffer-identification))) |
| 3166 | @end lisp | 3166 | @end lisp |
| 3167 | 3167 | ||
| 3168 | Since @value{emacsname} 23.1, the mode line contains an indication if | 3168 | Since @value{emacsname} 23.1, the mode line contains an indication if |
| @@ -3195,9 +3195,9 @@ like this: | |||
| 3195 | @lisp | 3195 | @lisp |
| 3196 | (add-hook | 3196 | (add-hook |
| 3197 | 'dired-before-readin-hook | 3197 | 'dired-before-readin-hook |
| 3198 | '(lambda () | 3198 | (lambda () |
| 3199 | (when (file-remote-p default-directory) | 3199 | (when (file-remote-p default-directory) |
| 3200 | (setq dired-actual-switches "-al")))) | 3200 | (setq dired-actual-switches "-al")))) |
| 3201 | @end lisp | 3201 | @end lisp |
| 3202 | @end ifset | 3202 | @end ifset |
| 3203 | 3203 | ||
| @@ -3329,9 +3329,9 @@ minibuffer: | |||
| 3329 | 3329 | ||
| 3330 | (add-hook | 3330 | (add-hook |
| 3331 | 'minibuffer-setup-hook | 3331 | 'minibuffer-setup-hook |
| 3332 | '(lambda () | 3332 | (lambda () |
| 3333 | (abbrev-mode 1) | 3333 | (abbrev-mode 1) |
| 3334 | (setq local-abbrev-table my-tramp-abbrev-table))) | 3334 | (setq local-abbrev-table my-tramp-abbrev-table))) |
| 3335 | 3335 | ||
| 3336 | (defadvice minibuffer-complete | 3336 | (defadvice minibuffer-complete |
| 3337 | (before my-minibuffer-complete activate) | 3337 | (before my-minibuffer-complete activate) |
| @@ -3398,7 +3398,7 @@ their readability through a remote access: | |||
| 3398 | @ifset xemacs | 3398 | @ifset xemacs |
| 3399 | (recent-files-initialize) | 3399 | (recent-files-initialize) |
| 3400 | (add-hook | 3400 | (add-hook |
| 3401 | 'find-file-hooks | 3401 | 'find-file-hook |
| 3402 | (lambda () | 3402 | (lambda () |
| 3403 | (when (file-remote-p (buffer-file-name)) | 3403 | (when (file-remote-p (buffer-file-name)) |
| 3404 | (recent-files-make-permanent))) | 3404 | (recent-files-make-permanent))) |
| @@ -621,6 +621,29 @@ enabled. | |||
| 621 | 621 | ||
| 622 | ** FIXME something happened to ses.el, 2012-04-17. | 622 | ** FIXME something happened to ses.el, 2012-04-17. |
| 623 | 623 | ||
| 624 | ** Hooks renamed to avoid obsolete "-hooks" suffix: | ||
| 625 | *** semantic-lex-reset-hooks -> semantic-lex-reset-functions | ||
| 626 | *** semantic-change-hooks -> semantic-change-functions | ||
| 627 | *** semantic-edits-new-change-hooks -> semantic-edits-new-change-functions | ||
| 628 | *** semantic-edits-delete-change-hooks -> semantic-edits-delete-change-functions | ||
| 629 | *** semantic-edits-reparse-change-hooks -> semantic-edits-reparse-change-functions | ||
| 630 | *** semanticdb-save-database-hooks -> semanticdb-save-database-functions | ||
| 631 | *** c-prepare-bug-report-hooks -> c-prepare-bug-report-hook | ||
| 632 | *** rcirc-sentinel-hooks -> rcirc-sentinel-functions | ||
| 633 | *** rcirc-receive-message-hooks -> rcirc-receive-message-functions | ||
| 634 | *** rcirc-activity-hooks -> rcirc-activity-functions | ||
| 635 | *** rcirc-print-hooks -> rcirc-print-functions | ||
| 636 | *** dbus-event-error-hooks -> dbus-event-error-functions | ||
| 637 | *** eieio-pre-method-execution-hooks -> eieio-pre-method-execution-functions | ||
| 638 | *** checkdoc-style-hooks -> checkdoc-style-functions | ||
| 639 | *** checkdoc-comment-style-hooks -> checkdoc-comment-style-functions | ||
| 640 | *** archive-extract-hooks -> archive-extract-hook | ||
| 641 | *** filesets-cache-fill-content-hooks -> filesets-cache-fill-content-hook | ||
| 642 | *** hfy-post-html-hooks -> hfy-post-html-hook | ||
| 643 | *** nndiary-request-create-group-hooks -> nndiary-request-create-group-functions | ||
| 644 | *** nndiary-request-update-info-hooks -> nndiary-request-update-info-functions | ||
| 645 | *** nndiary-request-accept-article-hooks -> nndiary-request-accept-article-functions | ||
| 646 | *** gnus-subscribe-newsgroup-hooks -> gnus-subscribe-newsgroup-functions | ||
| 624 | 647 | ||
| 625 | ** Obsolete packages: | 648 | ** Obsolete packages: |
| 626 | +++ | 649 | +++ |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 39c6b96fba4..16c4983d385 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,23 @@ | |||
| 1 | 2012-10-23 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * htmlfontify.el (hfy-post-html-hook): | ||
| 4 | * filesets.el (filesets-cache-fill-content-hook): | ||
| 5 | * arc-mode.el (archive-extract-hook): | ||
| 6 | * progmodes/cc-mode.el (c-prepare-bug-report-hook): | ||
| 7 | * net/rcirc.el (rcirc-sentinel-functions) | ||
| 8 | (rcirc-receive-message-functions, rcirc-activity-functions) | ||
| 9 | (rcirc-print-functions): | ||
| 10 | * net/dbus.el (dbus-event-error-functions): | ||
| 11 | * emacs-lisp/eieio.el (eieio-pre-method-execution-functions): | ||
| 12 | * emacs-lisp/checkdoc.el (checkdoc-style-functions) | ||
| 13 | (checkdoc-comment-style-functions): Don't use "-hooks" suffix. | ||
| 14 | * term/sun.el (sun-raw-prefix-hooks): | ||
| 15 | * mail/sendmail.el (mail-yank-hooks): Use make-obsolete-variable. | ||
| 16 | |||
| 1 | 2012-10-23 Michael Albinus <michael.albinus@gmx.de> | 17 | 2012-10-23 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 18 | ||
| 3 | * net/tramp-smb.el (tramp-smb-maybe-open-connection): Set | 19 | * net/tramp-smb.el (tramp-smb-maybe-open-connection): |
| 4 | `tramp-chunksize' to 1. This improves the performance. | 20 | Set `tramp-chunksize' to 1. This improves the performance. |
| 5 | (tramp-smb-wait-for-output): Add timeout to | 21 | (tramp-smb-wait-for-output): Add timeout to |
| 6 | `tramp-accept-process-output' calls. | 22 | `tramp-accept-process-output' calls. |
| 7 | 23 | ||
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index c04cd8dcf9d..cebd4302d0c 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el | |||
| @@ -140,8 +140,10 @@ A local copy of the archive will be used when updating." | |||
| 140 | :type 'regexp | 140 | :type 'regexp |
| 141 | :group 'archive) | 141 | :group 'archive) |
| 142 | 142 | ||
| 143 | (defcustom archive-extract-hooks nil | 143 | (define-obsolete-variable-alias 'archive-extract-hooks |
| 144 | "Hooks to run when an archive member has been extracted." | 144 | 'archive-extract-hook "24.3") |
| 145 | (defcustom archive-extract-hook nil | ||
| 146 | "Hook run when an archive member has been extracted." | ||
| 145 | :type 'hook | 147 | :type 'hook |
| 146 | :group 'archive) | 148 | :group 'archive) |
| 147 | ;; ------------------------------ | 149 | ;; ------------------------------ |
| @@ -1078,7 +1080,7 @@ using `make-temp-file', and the generated name is returned." | |||
| 1078 | ;; We will write out the archive ourselves if it is | 1080 | ;; We will write out the archive ourselves if it is |
| 1079 | ;; part of another archive. | 1081 | ;; part of another archive. |
| 1080 | (remove-hook 'write-contents-functions 'archive-write-file t)) | 1082 | (remove-hook 'write-contents-functions 'archive-write-file t)) |
| 1081 | (run-hooks 'archive-extract-hooks) | 1083 | (run-hooks 'archive-extract-hook) |
| 1082 | (if archive-read-only | 1084 | (if archive-read-only |
| 1083 | (message "Note: altering this archive is not implemented.")))) | 1085 | (message "Note: altering this archive is not implemented.")))) |
| 1084 | (archive-maybe-update t)) | 1086 | (archive-maybe-update t)) |
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog index e89e8ed258b..7656248cac5 100644 --- a/lisp/cedet/ChangeLog +++ b/lisp/cedet/ChangeLog | |||
| @@ -1,14 +1,23 @@ | |||
| 1 | 2012-10-23 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * semantic/db-file.el (semanticdb-save-database-functions): | ||
| 4 | * semantic/lex.el (semantic-lex-reset-functions): | ||
| 5 | * semantic/edit.el (semantic-change-functions) | ||
| 6 | (semantic-edits-new-change-functions) | ||
| 7 | (semantic-edits-delete-change-functions) | ||
| 8 | (semantic-edits-reparse-change-functions): Don't use "-hooks" suffix. | ||
| 9 | |||
| 1 | 2012-10-14 David Engster <deng@randomsample.de> | 10 | 2012-10-14 David Engster <deng@randomsample.de> |
| 2 | 11 | ||
| 3 | * semantic.el (semantic-error-if-unparsed): New function. Raise | 12 | * semantic.el (semantic-error-if-unparsed): New function. |
| 4 | error if buffer was not parsed by Semantic (bug #12045). | 13 | Raise error if buffer was not parsed by Semantic (bug #12045). |
| 5 | (navigate-menu, edit-menu, cedet-menu-map): Enable Semantic items | 14 | (navigate-menu, edit-menu, cedet-menu-map): Enable Semantic items |
| 6 | only if buffer was parsed. Also, replace ':active' with ':enable' | 15 | only if buffer was parsed. Also, replace ':active' with ':enable' |
| 7 | where necessary. | 16 | where necessary. |
| 8 | 17 | ||
| 9 | * semantic/wisent/python.el | 18 | * semantic/wisent/python.el |
| 10 | (semantic-python-get-system-include-path): Use | 19 | (semantic-python-get-system-include-path): |
| 11 | `python-shell-internal-send-string' if available to query Python | 20 | Use `python-shell-internal-send-string' if available to query Python |
| 12 | for system paths. | 21 | for system paths. |
| 13 | 22 | ||
| 14 | * semantic/senator.el (senator-next-tag, senator-previous-tag) | 23 | * semantic/senator.el (senator-next-tag, senator-previous-tag) |
| @@ -57,8 +66,8 @@ | |||
| 57 | 2012-10-06 Chong Yidong <cyd@gnu.org> | 66 | 2012-10-06 Chong Yidong <cyd@gnu.org> |
| 58 | 67 | ||
| 59 | * semantic/bovine/grammar.el: | 68 | * semantic/bovine/grammar.el: |
| 60 | * semantic/wisent/grammar.el: Move from admin/grammars. Add | 69 | * semantic/wisent/grammar.el: Move from admin/grammars. |
| 61 | autoloads for bovine-grammar-mode and wisent-grammar-mode. | 70 | Add autoloads for bovine-grammar-mode and wisent-grammar-mode. |
| 62 | 71 | ||
| 63 | 2012-10-02 Chong Yidong <cyd@gnu.org> | 72 | 2012-10-02 Chong Yidong <cyd@gnu.org> |
| 64 | 73 | ||
| @@ -163,8 +172,8 @@ | |||
| 163 | (-scheme, -makefile-misc, ede-proj-target-makefile-program) | 172 | (-scheme, -makefile-misc, ede-proj-target-makefile-program) |
| 164 | (-makefile-archive, -makefile-shared-object) | 173 | (-makefile-archive, -makefile-shared-object) |
| 165 | (ede-proj-target-makefile-info, -grammar): New autoloads. | 174 | (ede-proj-target-makefile-info, -grammar): New autoloads. |
| 166 | (ede-proj-project): Inherit from eieio-persistent-read. Specify | 175 | (ede-proj-project): Inherit from eieio-persistent-read. |
| 167 | extension and header line. | 176 | Specify extension and header line. |
| 168 | (ede-proj-load, ede-proj-save): Replace with impl using | 177 | (ede-proj-load, ede-proj-save): Replace with impl using |
| 169 | eieio-persistent-read. | 178 | eieio-persistent-read. |
| 170 | 179 | ||
| @@ -176,27 +185,27 @@ | |||
| 176 | (navigate-menu): Add menu item for Stickyfunc mode. | 185 | (navigate-menu): Add menu item for Stickyfunc mode. |
| 177 | 186 | ||
| 178 | * semantic/analyze/debug.el | 187 | * semantic/analyze/debug.el |
| 179 | (semantic-analyzer-debug-insert-include-summary): Before | 188 | (semantic-analyzer-debug-insert-include-summary): |
| 180 | dereferencing tableinner, make sure it has a value. | 189 | Before dereferencing tableinner, make sure it has a value. |
| 181 | 190 | ||
| 182 | * semantic/analyze/refs.el | 191 | * semantic/analyze/refs.el |
| 183 | (semantic-analyze-tag-references-default): When doing a lookup, | 192 | (semantic-analyze-tag-references-default): When doing a lookup, |
| 184 | specify noerror. | 193 | specify noerror. |
| 185 | (semantic--analyze-refs-full-lookup): Add optional noerror input | 194 | (semantic--analyze-refs-full-lookup): Add optional noerror input |
| 186 | argument. Pass to to full-lookup-simple. | 195 | argument. Pass to to full-lookup-simple. |
| 187 | (semantic-analyze-refs-impl, semantic-analyze-refs-proto): Ignore | 196 | (semantic-analyze-refs-impl, semantic-analyze-refs-proto): |
| 188 | :typemodifiers during compare. | 197 | Ignore :typemodifiers during compare. |
| 189 | 198 | ||
| 190 | * semantic/bovine/c.el (semantic-lex-cpp-define): Specify limits | 199 | * semantic/bovine/c.el (semantic-lex-cpp-define): Specify limits |
| 191 | to looking back for comment chars. | 200 | to looking back for comment chars. |
| 192 | (semantic--tag-similar-names-p, semantic--tag-similar-names-p-default) | 201 | (semantic--tag-similar-names-p, semantic--tag-similar-names-p-default) |
| 193 | (semantic--tag-attribute-similar-p): New. | 202 | (semantic--tag-attribute-similar-p): New. |
| 194 | (semantic-c-describe-environment): Handle list value of ede-object. | 203 | (semantic-c-describe-environment): Handle list value of ede-object. |
| 195 | (semantic-lex-c-preprocessor-symbol-map-builtin): Add | 204 | (semantic-lex-c-preprocessor-symbol-map-builtin): |
| 196 | __attribute_pure__. | 205 | Add __attribute_pure__. |
| 197 | 206 | ||
| 198 | * semantic/bovine/scm.el (semantic-format-tag-prototype): Add | 207 | * semantic/bovine/scm.el (semantic-format-tag-prototype): |
| 199 | parent and color argument. Pass them through. | 208 | Add parent and color argument. Pass them through. |
| 200 | 209 | ||
| 201 | * semantic/complete.el (semantic-collector-calculate-completions): | 210 | * semantic/complete.el (semantic-collector-calculate-completions): |
| 202 | Search for more matches if new prefix is a substring of old one. | 211 | Search for more matches if new prefix is a substring of old one. |
| @@ -217,15 +226,15 @@ | |||
| 217 | the (%d tags) extra string. | 226 | the (%d tags) extra string. |
| 218 | (semanticdb-project-database): Specify :type for table. | 227 | (semanticdb-project-database): Specify :type for table. |
| 219 | (semanticdb-create-table-for-file): Specify file-truename. | 228 | (semanticdb-create-table-for-file): Specify file-truename. |
| 220 | (semanticdb-synchronize, semanticdb-partial-synchronize): Restore | 229 | (semanticdb-synchronize, semanticdb-partial-synchronize): |
| 221 | code that refreshes references to include files. | 230 | Restore code that refreshes references to include files. |
| 222 | 231 | ||
| 223 | * semantic/decorate/include.el | 232 | * semantic/decorate/include.el |
| 224 | (semantic-decoration-on-fileless-includes): New face. | 233 | (semantic-decoration-on-fileless-includes): New face. |
| 225 | (semantic-decoration-on-fileless-include-map) | 234 | (semantic-decoration-on-fileless-include-map) |
| 226 | (semantic-decoration-on-fileless-include-menu): New variables. | 235 | (semantic-decoration-on-fileless-include-menu): New variables. |
| 227 | (semantic-decoration-on-includes-highlight-default): Support | 236 | (semantic-decoration-on-includes-highlight-default): |
| 228 | includes that have a table, but are not associated with a file. | 237 | Support includes that have a table, but are not associated with a file. |
| 229 | (semantic-decoration-fileless-include-describe) | 238 | (semantic-decoration-fileless-include-describe) |
| 230 | (semantic-decoration-fileless-include-menu): New functions. | 239 | (semantic-decoration-fileless-include-menu): New functions. |
| 231 | (semantic-decoration-all-include-summary): Add arrows to indicate | 240 | (semantic-decoration-all-include-summary): Add arrows to indicate |
| @@ -262,15 +271,15 @@ | |||
| 262 | * semantic/tag.el (semantic-create-tag-proxy) | 271 | * semantic/tag.el (semantic-create-tag-proxy) |
| 263 | (semantic-tag-set-proxy, semantic-tag-resolve-proxy): New. | 272 | (semantic-tag-set-proxy, semantic-tag-resolve-proxy): New. |
| 264 | 273 | ||
| 265 | * semantic/util.el (semantic-describe-buffer): Add | 274 | * semantic/util.el (semantic-describe-buffer): |
| 266 | semantic-new-buffer-fcn-was-run. | 275 | Add semantic-new-buffer-fcn-was-run. |
| 267 | 276 | ||
| 268 | * semantic/wisent/java-tags.el (semantic-get-local-variables): Add | 277 | * semantic/wisent/java-tags.el (semantic-get-local-variables): |
| 269 | `this' to the local variable context. | 278 | Add `this' to the local variable context. |
| 270 | (semantic-analyze-split-name, semantic-analyze-unsplit-name): New. | 279 | (semantic-analyze-split-name, semantic-analyze-unsplit-name): New. |
| 271 | 280 | ||
| 272 | * semantic/wisent/python.el (semantic-python-expand-tag): New | 281 | * semantic/wisent/python.el (semantic-python-expand-tag): |
| 273 | function. | 282 | New function. |
| 274 | 283 | ||
| 275 | * srecode/compile.el (srecode-compile-templates): Add "framework" | 284 | * srecode/compile.el (srecode-compile-templates): Add "framework" |
| 276 | special variable support. | 285 | special variable support. |
| @@ -280,7 +289,7 @@ | |||
| 280 | (srecode-semantic-handle-:cpp): New functions. | 289 | (srecode-semantic-handle-:cpp): New functions. |
| 281 | (srecode-semantic-apply-tag-to-dict): Move from cpp-mode function | 290 | (srecode-semantic-apply-tag-to-dict): Move from cpp-mode function |
| 282 | to c-mode function. | 291 | to c-mode function. |
| 283 | (srecode-c-apply-templates): Renamed from srecode-cpp-apply-templates. | 292 | (srecode-c-apply-templates): Rename from srecode-cpp-apply-templates. |
| 284 | 293 | ||
| 285 | * srecode/dictionary.el (initialize-instance): Remove bogus error | 294 | * srecode/dictionary.el (initialize-instance): Remove bogus error |
| 286 | condition. | 295 | condition. |
| @@ -293,8 +302,8 @@ | |||
| 293 | 302 | ||
| 294 | * srecode/mode.el (srecode-minor-mode): Support the m3 menu. | 303 | * srecode/mode.el (srecode-minor-mode): Support the m3 menu. |
| 295 | 304 | ||
| 296 | * srecode/semantic.el (srecode-semantic-insert-tag): Support | 305 | * srecode/semantic.el (srecode-semantic-insert-tag): |
| 297 | system includes. | 306 | Support system includes. |
| 298 | 307 | ||
| 299 | * srecode/srt-mode.el (srecode-font-lock-keywords): Update. | 308 | * srecode/srt-mode.el (srecode-font-lock-keywords): Update. |
| 300 | 309 | ||
| @@ -325,8 +334,8 @@ | |||
| 325 | * ede/proj-comp.el (ede-proj-makefile-insert-rules): Fix insertion | 334 | * ede/proj-comp.el (ede-proj-makefile-insert-rules): Fix insertion |
| 326 | of phony rule. | 335 | of phony rule. |
| 327 | 336 | ||
| 328 | * ede/proj-elisp.el (ede-proj-target-elisp): Remove | 337 | * ede/proj-elisp.el (ede-proj-target-elisp): |
| 329 | ede-emacs-preload-compiler. | 338 | Remove ede-emacs-preload-compiler. |
| 330 | (ede-proj-makefile-insert-rules, ede-proj-makefile-dependencies): | 339 | (ede-proj-makefile-insert-rules, ede-proj-makefile-dependencies): |
| 331 | New methods. | 340 | New methods. |
| 332 | (ede-emacs-compiler): Add 'require' macro to variables and pattern | 341 | (ede-emacs-compiler): Add 'require' macro to variables and pattern |
| @@ -362,8 +371,8 @@ | |||
| 362 | (semantic-cpp-lexer): Add semantic-lex-c-ifdef. | 371 | (semantic-cpp-lexer): Add semantic-lex-c-ifdef. |
| 363 | (semantic-expand-c-tag): Check if tag is non-nil before adding it | 372 | (semantic-expand-c-tag): Check if tag is non-nil before adding it |
| 364 | to return list | 373 | to return list |
| 365 | (semantic-expand-c-extern-C, semantic-expand-c-complex-type): New | 374 | (semantic-expand-c-extern-C, semantic-expand-c-complex-type): |
| 366 | functions, copied from semantic-expand-c-tag. | 375 | New functions, copied from semantic-expand-c-tag. |
| 367 | (semantic-find-tags-included): New override which also searches | 376 | (semantic-find-tags-included): New override which also searches |
| 368 | for include tags inside of namespaces. | 377 | for include tags inside of namespaces. |
| 369 | (semantic-c-dereference-typedef): Use semantic-tag-prototype-p. | 378 | (semantic-c-dereference-typedef): Use semantic-tag-prototype-p. |
| @@ -371,16 +380,16 @@ | |||
| 371 | 380 | ||
| 372 | * semantic/bovine/el.el: Remove emacs-lisp-mode-hook. | 381 | * semantic/bovine/el.el: Remove emacs-lisp-mode-hook. |
| 373 | 382 | ||
| 374 | * semantic/complete.el (semantic-complete-post-command-hook): Exit | 383 | * semantic/complete.el (semantic-complete-post-command-hook): |
| 375 | completion when user has deleted all characters from the prefix. | 384 | Exit completion when user has deleted all characters from the prefix. |
| 376 | (semantic-displayor-focus-request): Return to previous window when | 385 | (semantic-displayor-focus-request): Return to previous window when |
| 377 | focussing tags. | 386 | focussing tags. |
| 378 | 387 | ||
| 379 | * semantic/db-el.el (semanticdb-normalize-one-tag): Make obsolete. | 388 | * semantic/db-el.el (semanticdb-normalize-one-tag): Make obsolete. |
| 380 | (semanticdb-elisp-sym->tag): Use help-function-arglist instead. | 389 | (semanticdb-elisp-sym->tag): Use help-function-arglist instead. |
| 381 | 390 | ||
| 382 | * semantic/db-file.el (semanticdb-create-database): Use | 391 | * semantic/db-file.el (semanticdb-create-database): |
| 383 | semantic-tag-version instead of just semantic-version as the | 392 | Use semantic-tag-version instead of just semantic-version as the |
| 384 | initializer for the :semantic-tag-version slot. | 393 | initializer for the :semantic-tag-version slot. |
| 385 | 394 | ||
| 386 | * semantic/db-find.el (semanticdb-find-tags-by-class-method): | 395 | * semantic/db-find.el (semanticdb-find-tags-by-class-method): |
| @@ -394,11 +403,11 @@ | |||
| 394 | (semanticdb-save-current-db, semanticdb-save-all-db): Only emit | 403 | (semanticdb-save-current-db, semanticdb-save-all-db): Only emit |
| 395 | message when running interactively. | 404 | message when running interactively. |
| 396 | 405 | ||
| 397 | * semantic/decorate/mode.el (semantic-decoration-mode): Activate | 406 | * semantic/decorate/mode.el (semantic-decoration-mode): |
| 398 | decoration of includes by default. | 407 | Activate decoration of includes by default. |
| 399 | 408 | ||
| 400 | * semantic/doc.el (semantic-doc-snarf-comment-for-tag): Remove | 409 | * semantic/doc.el (semantic-doc-snarf-comment-for-tag): |
| 401 | comment delimiter at the end of the text. | 410 | Remove comment delimiter at the end of the text. |
| 402 | 411 | ||
| 403 | * semantic/ede-grammar.el (semantic-ede-proj-target-grammar): | 412 | * semantic/ede-grammar.el (semantic-ede-proj-target-grammar): |
| 404 | Change aux- and pre-load-packages. | 413 | Change aux- and pre-load-packages. |
| @@ -412,16 +421,16 @@ | |||
| 412 | (ede-proj-makefile-insert-rules): Add target specific EMACSFLAGS | 421 | (ede-proj-makefile-insert-rules): Add target specific EMACSFLAGS |
| 413 | to raise max-specpdl-size and max-lisp-eval-depth. | 422 | to raise max-specpdl-size and max-lisp-eval-depth. |
| 414 | 423 | ||
| 415 | * semantic/find.el (semantic-find-tags-included): Make | 424 | * semantic/find.el (semantic-find-tags-included): |
| 416 | overridable. | 425 | Make overridable. |
| 417 | 426 | ||
| 418 | * semantic/fw.el (semantic-alias-obsolete) | 427 | * semantic/fw.el (semantic-alias-obsolete) |
| 419 | (semantic-varalias-obsolete): Use byte-compile-warn. | 428 | (semantic-varalias-obsolete): Use byte-compile-warn. |
| 420 | (semantic-find-file-noselect): Disable font lock by calling | 429 | (semantic-find-file-noselect): Disable font lock by calling |
| 421 | global-font-lock-mode. | 430 | global-font-lock-mode. |
| 422 | 431 | ||
| 423 | * semantic/grammar.el (semantic-grammar-create-package): Fix | 432 | * semantic/grammar.el (semantic-grammar-create-package): |
| 424 | message. | 433 | Fix message. |
| 425 | (semantic-grammar-batch-build-one-package): When generating | 434 | (semantic-grammar-batch-build-one-package): When generating |
| 426 | parsers in batch-mode, ignore version control and make sure we do | 435 | parsers in batch-mode, ignore version control and make sure we do |
| 427 | not use cached versions. | 436 | not use cached versions. |
| @@ -433,16 +442,16 @@ | |||
| 433 | (semantic-lex-spp-lex-text-string): Instead of only setting the | 442 | (semantic-lex-spp-lex-text-string): Instead of only setting the |
| 434 | lexer, call the major mode's setup function. | 443 | lexer, call the major mode's setup function. |
| 435 | 444 | ||
| 436 | * semantic/scope.el (semantic-analyze-scoped-types-default): Use | 445 | * semantic/scope.el (semantic-analyze-scoped-types-default): |
| 437 | semantic-tag-prototype-p. | 446 | Use semantic-tag-prototype-p. |
| 438 | (semantic-analyze-scope-nested-tags-default): Make sure we don't | 447 | (semantic-analyze-scope-nested-tags-default): Make sure we don't |
| 439 | return tags we already have in scopetypes. | 448 | return tags we already have in scopetypes. |
| 440 | 449 | ||
| 441 | * semantic/symref/filter.el | 450 | * semantic/symref/filter.el |
| 442 | (semantic-symref-test-count-hits-in-tag): Restore. | 451 | (semantic-symref-test-count-hits-in-tag): Restore. |
| 443 | 452 | ||
| 444 | * semantic/wisent/comp.el (wisent-BITS-PER-WORD): Use | 453 | * semantic/wisent/comp.el (wisent-BITS-PER-WORD): |
| 445 | most-positive-fixnum if available. | 454 | Use most-positive-fixnum if available. |
| 446 | 455 | ||
| 447 | * semantic/wisent/javascript.el (semantic-tag-protection) | 456 | * semantic/wisent/javascript.el (semantic-tag-protection) |
| 448 | (semantic-analyze-scope-calculate-access) | 457 | (semantic-analyze-scope-calculate-access) |
| @@ -477,8 +486,8 @@ | |||
| 477 | 2012-10-01 Jan Moringen <jan.moringen@uni-bielefeld.de> | 486 | 2012-10-01 Jan Moringen <jan.moringen@uni-bielefeld.de> |
| 478 | 487 | ||
| 479 | * semantic/idle.el | 488 | * semantic/idle.el |
| 480 | (semantic-idle-breadcrumbs--display-in-header-line): Escape | 489 | (semantic-idle-breadcrumbs--display-in-header-line): |
| 481 | %-characters to avoid erroneous expansion in header line. | 490 | Escape %-characters to avoid erroneous expansion in header line. |
| 482 | (semantic-idle-breadcrumbs--display-in-mode-line): Likewise. | 491 | (semantic-idle-breadcrumbs--display-in-mode-line): Likewise. |
| 483 | 492 | ||
| 484 | * semantic/wisent/python.el (wisent-python-reconstitute-function-tag) | 493 | * semantic/wisent/python.el (wisent-python-reconstitute-function-tag) |
| @@ -514,8 +523,8 @@ | |||
| 514 | 523 | ||
| 515 | * semantic/wisent/python.el (wisent-python-string-start-re) | 524 | * semantic/wisent/python.el (wisent-python-string-start-re) |
| 516 | (wisent-python-string-re, wisent-python-forward-string) | 525 | (wisent-python-string-re, wisent-python-forward-string) |
| 517 | (wisent-python-forward-line,wisent-python-lex-string): New | 526 | (wisent-python-forward-line,wisent-python-lex-string): |
| 518 | variables. | 527 | New variables. |
| 519 | (wisent-python-forward-balanced-expression): New function. | 528 | (wisent-python-forward-balanced-expression): New function. |
| 520 | 529 | ||
| 521 | 2012-10-01 Pete Beardmore <elbeardmorez@msn.com> | 530 | 2012-10-01 Pete Beardmore <elbeardmorez@msn.com> |
| @@ -528,16 +537,16 @@ | |||
| 528 | (semantic-displayor-tooltip-mode) | 537 | (semantic-displayor-tooltip-mode) |
| 529 | (semantic-displayor-tooltip-initial-max-tags) | 538 | (semantic-displayor-tooltip-initial-max-tags) |
| 530 | (semantic-displayor-tooltip-max-tags): New defcustoms. | 539 | (semantic-displayor-tooltip-max-tags): New defcustoms. |
| 531 | (semantic-displayor-tooltip): Use new variables as initforms. Use | 540 | (semantic-displayor-tooltip): Use new variables as initforms. |
| 532 | new slot `mode' instead of `force-show'. Rename `max-tags' to | 541 | Use new slot `mode' instead of `force-show'. Rename `max-tags' to |
| 533 | `max-tags-initial'. | 542 | `max-tags-initial'. |
| 534 | (semantic-displayor-show-request): Display completions according | 543 | (semantic-displayor-show-request): Display completions according |
| 535 | to new modes, and make variable names clearer. | 544 | to new modes, and make variable names clearer. |
| 536 | (semantic-displayor-tooltip::semantic-displayor-scroll-request): | 545 | (semantic-displayor-tooltip::semantic-displayor-scroll-request): |
| 537 | Use new max-tags-initial slot. | 546 | Use new max-tags-initial slot. |
| 538 | 547 | ||
| 539 | * semantic/idle.el (semantic-idle-local-symbol-highlight): Make | 548 | * semantic/idle.el (semantic-idle-local-symbol-highlight): |
| 540 | sure there actually is a tag at point. | 549 | Make sure there actually is a tag at point. |
| 541 | (semantic-idle-completion-list-default): Report errors as messages | 550 | (semantic-idle-completion-list-default): Report errors as messages |
| 542 | if semantic-idle-scheduler-verbose-flag is non-nil. | 551 | if semantic-idle-scheduler-verbose-flag is non-nil. |
| 543 | 552 | ||
| @@ -548,13 +557,13 @@ | |||
| 548 | 557 | ||
| 549 | 2012-10-01 Alex Ott <alexott@gmail.com> | 558 | 2012-10-01 Alex Ott <alexott@gmail.com> |
| 550 | 559 | ||
| 551 | * semantic/idle.el (semantic-idle-scheduler-enabled-p): Fix | 560 | * semantic/idle.el (semantic-idle-scheduler-enabled-p): |
| 552 | file-checking. | 561 | Fix file-checking. |
| 553 | 562 | ||
| 554 | 2012-10-01 Darren Hoo <darren.hoo@gmail.com> (tiny change) | 563 | 2012-10-01 Darren Hoo <darren.hoo@gmail.com> (tiny change) |
| 555 | 564 | ||
| 556 | * semantic/db-find.el (semanticdb-find-default-throttle): Make | 565 | * semantic/db-find.el (semanticdb-find-default-throttle): |
| 557 | buffer-local. | 566 | Make buffer-local. |
| 558 | (semanticdb-strip-find-results): Check for existing :filename | 567 | (semanticdb-strip-find-results): Check for existing :filename |
| 559 | attribute, so that file information from GNU Global is not lost. | 568 | attribute, so that file information from GNU Global is not lost. |
| 560 | 569 | ||
| @@ -1001,7 +1010,7 @@ | |||
| 1001 | (ede-customize-forms-menu): Prevent error if there is no project. | 1010 | (ede-customize-forms-menu): Prevent error if there is no project. |
| 1002 | (ede-load-project-file): Set ede-constructing to the thing being | 1011 | (ede-load-project-file): Set ede-constructing to the thing being |
| 1003 | constructed, instead of t. | 1012 | constructed, instead of t. |
| 1004 | (ede-project-force-load): Deleted. | 1013 | (ede-project-force-load): Delete. |
| 1005 | 1014 | ||
| 1006 | * ede/base.el: | 1015 | * ede/base.el: |
| 1007 | * ede/auto.el: | 1016 | * ede/auto.el: |
| @@ -1011,7 +1020,7 @@ | |||
| 1011 | (autoconf-parameters-for-macro): Parse multiline parameters of | 1020 | (autoconf-parameters-for-macro): Parse multiline parameters of |
| 1012 | macros. Optionally ignore case and at bol for macro. | 1021 | macros. Optionally ignore case and at bol for macro. |
| 1013 | (autoconf-parameter-strip): Use greedy match for newlines. | 1022 | (autoconf-parameter-strip): Use greedy match for newlines. |
| 1014 | (autoconf-new-automake-string): Deleted. | 1023 | (autoconf-new-automake-string): Delete. |
| 1015 | (autoconf-new-program): Use SRecode to fill an empty file. | 1024 | (autoconf-new-program): Use SRecode to fill an empty file. |
| 1016 | 1025 | ||
| 1017 | * ede/cpp-root.el (ede-create-lots-of-projects-under-dir): | 1026 | * ede/cpp-root.el (ede-create-lots-of-projects-under-dir): |
| @@ -1046,7 +1055,7 @@ | |||
| 1046 | (project-am-scan-for-targets): Scan also over | 1055 | (project-am-scan-for-targets): Scan also over |
| 1047 | project-am-meta-type-alist. | 1056 | project-am-meta-type-alist. |
| 1048 | (ede-system-include-path): Simple implementation. | 1057 | (ede-system-include-path): Simple implementation. |
| 1049 | (ede-find-target): Deleted. EDE core takes care of this. | 1058 | (ede-find-target): Delete. EDE core takes care of this. |
| 1050 | (ede-buffer-mine): Create the searched filename as relative. | 1059 | (ede-buffer-mine): Create the searched filename as relative. |
| 1051 | (project-am-load): Simplify, using autoconf-edit. | 1060 | (project-am-load): Simplify, using autoconf-edit. |
| 1052 | (project-am-extract-package-info): Fix separators. | 1061 | (project-am-extract-package-info): Fix separators. |
| @@ -1063,7 +1072,7 @@ | |||
| 1063 | (ede-proj-target-makefile-objectcode): Quote initforms. | 1072 | (ede-proj-target-makefile-objectcode): Quote initforms. |
| 1064 | Support lex and yacc. | 1073 | Support lex and yacc. |
| 1065 | 1074 | ||
| 1066 | * ede/proj-prog.el (ede-proj-makefile-insert-rules): Removed. | 1075 | * ede/proj-prog.el (ede-proj-makefile-insert-rules): Remove. |
| 1067 | (ede-proj-makefile-insert-variables): New, add LDDEPS. | 1076 | (ede-proj-makefile-insert-variables): New, add LDDEPS. |
| 1068 | (ede-proj-makefile-insert-automake-post-variables): Add LDADD | 1077 | (ede-proj-makefile-insert-automake-post-variables): Add LDADD |
| 1069 | variable. Use ldlibs-local slot. Add a -l to ldlibs strings. | 1078 | variable. Use ldlibs-local slot. Add a -l to ldlibs strings. |
| @@ -1158,7 +1167,7 @@ | |||
| 1158 | 1167 | ||
| 1159 | * semantic/util.el (semantic-hack-search) | 1168 | * semantic/util.el (semantic-hack-search) |
| 1160 | (semantic-recursive-find-nonterminal-by-name) | 1169 | (semantic-recursive-find-nonterminal-by-name) |
| 1161 | (semantic-current-tag-interactive): Deleted. | 1170 | (semantic-current-tag-interactive): Delete. |
| 1162 | (semantic-describe-buffer): Fix expand-nonterminal. | 1171 | (semantic-describe-buffer): Fix expand-nonterminal. |
| 1163 | Add lex-syntax-mods, type relation separator char, and command | 1172 | Add lex-syntax-mods, type relation separator char, and command |
| 1164 | separation char. | 1173 | separation char. |
| @@ -1191,7 +1200,7 @@ | |||
| 1191 | (semantic-idle-truncate-long-summaries): New option. | 1200 | (semantic-idle-truncate-long-summaries): New option. |
| 1192 | 1201 | ||
| 1193 | * semantic/ia.el (semantic-ia-cache) | 1202 | * semantic/ia.el (semantic-ia-cache) |
| 1194 | (semantic-ia-get-completions): Deleted. Callers changed. | 1203 | (semantic-ia-get-completions): Delete. Callers changed. |
| 1195 | (semantic-ia-show-variants): New command. | 1204 | (semantic-ia-show-variants): New command. |
| 1196 | (semantic-ia-show-doc): If doc is empty, don't make a temp buffer. | 1205 | (semantic-ia-show-doc): If doc is empty, don't make a temp buffer. |
| 1197 | (semantic-ia-show-summary): If there isn't anything to show, say so. | 1206 | (semantic-ia-show-summary): If there isn't anything to show, say so. |
diff --git a/lisp/cedet/semantic/db-file.el b/lisp/cedet/semantic/db-file.el index 7b4a47bd260..4f8e93dc391 100644 --- a/lisp/cedet/semantic/db-file.el +++ b/lisp/cedet/semantic/db-file.el | |||
| @@ -70,7 +70,9 @@ passes a list of predicates in `semanticdb-project-predicate-functions'." | |||
| 70 | :group 'semanticdb | 70 | :group 'semanticdb |
| 71 | :type nil) | 71 | :type nil) |
| 72 | 72 | ||
| 73 | (defcustom semanticdb-save-database-hooks nil | 73 | (define-obsolete-variable-alias 'semanticdb-save-database-hooks |
| 74 | 'semanticdb-save-database-functions "24.3") | ||
| 75 | (defcustom semanticdb-save-database-functions nil | ||
| 74 | "Abnormal hook run after a database is saved. | 76 | "Abnormal hook run after a database is saved. |
| 75 | Each function is called with one argument, the object representing | 77 | Each function is called with one argument, the object representing |
| 76 | the database recently written." | 78 | the database recently written." |
| @@ -251,7 +253,7 @@ If DB is not specified, then use the current database." | |||
| 251 | (message "Save Error: %S: %s" (car (cdr foo)) | 253 | (message "Save Error: %S: %s" (car (cdr foo)) |
| 252 | objname) | 254 | objname) |
| 253 | (error "%S" (car (cdr foo)))))))) | 255 | (error "%S" (car (cdr foo)))))))) |
| 254 | (run-hook-with-args 'semanticdb-save-database-hooks | 256 | (run-hook-with-args 'semanticdb-save-database-functions |
| 255 | (or DB semanticdb-current-database)) | 257 | (or DB semanticdb-current-database)) |
| 256 | ;;(message "Saving tag summary for %s...done" objname) | 258 | ;;(message "Saving tag summary for %s...done" objname) |
| 257 | ) | 259 | ) |
diff --git a/lisp/cedet/semantic/edit.el b/lisp/cedet/semantic/edit.el index 23b6784fe2a..5b39dec2628 100644 --- a/lisp/cedet/semantic/edit.el +++ b/lisp/cedet/semantic/edit.el | |||
| @@ -72,7 +72,9 @@ updated in the current buffer. | |||
| 72 | 72 | ||
| 73 | For language specific hooks, make sure you define this as a local hook.") | 73 | For language specific hooks, make sure you define this as a local hook.") |
| 74 | 74 | ||
| 75 | (defvar semantic-change-hooks | 75 | (define-obsolete-variable-alias 'semantic-change-hooks |
| 76 | 'semantic-change-functions "24.3") | ||
| 77 | (defvar semantic-change-functions | ||
| 76 | '(semantic-edits-change-function-handle-changes) | 78 | '(semantic-edits-change-function-handle-changes) |
| 77 | "Abnormal hook run when semantic detects a change in a buffer. | 79 | "Abnormal hook run when semantic detects a change in a buffer. |
| 78 | Each hook function must take three arguments, identical to the | 80 | Each hook function must take three arguments, identical to the |
| @@ -89,11 +91,15 @@ If the hook returns non-nil, then declare that a reparse is needed. | |||
| 89 | For language specific hooks, make sure you define this as a local hook. | 91 | For language specific hooks, make sure you define this as a local hook. |
| 90 | Not used yet; part of the next generation reparse mechanism.") | 92 | Not used yet; part of the next generation reparse mechanism.") |
| 91 | 93 | ||
| 92 | (defvar semantic-edits-new-change-hooks nil | 94 | (define-obsolete-variable-alias 'semantic-edits-new-change-hooks |
| 95 | 'semantic-edits-new-change-functions "24.3") | ||
| 96 | (defvar semantic-edits-new-change-functions nil | ||
| 93 | "Abnormal hook run when a new change is found. | 97 | "Abnormal hook run when a new change is found. |
| 94 | Functions must take one argument representing an overlay on that change.") | 98 | Functions must take one argument representing an overlay on that change.") |
| 95 | 99 | ||
| 96 | (defvar semantic-edits-delete-change-hooks nil | 100 | (define-obsolete-variable-alias 'semantic-edits-delete-change-hooks |
| 101 | 'semantic-edits-delete-change-functions "24.3") | ||
| 102 | (defvar semantic-edits-delete-change-functions nil | ||
| 97 | "Abnormal hook run before a change overlay is deleted. | 103 | "Abnormal hook run before a change overlay is deleted. |
| 98 | Deleted changes occur when multiple changes are merged. | 104 | Deleted changes occur when multiple changes are merged. |
| 99 | Functions must take one argument representing an overlay being deleted.") | 105 | Functions must take one argument representing an overlay being deleted.") |
| @@ -104,7 +110,9 @@ Changes move when a new change overlaps an old change. The old change | |||
| 104 | will be moved. | 110 | will be moved. |
| 105 | Functions must take one argument representing an overlay being moved.") | 111 | Functions must take one argument representing an overlay being moved.") |
| 106 | 112 | ||
| 107 | (defvar semantic-edits-reparse-change-hooks nil | 113 | (define-obsolete-variable-alias 'semantic-edits-reparse-change-hooks |
| 114 | 'semantic-edits-reparse-change-functions "24.3") | ||
| 115 | (defvar semantic-edits-reparse-change-functions nil | ||
| 108 | "Abnormal hook run after a change results in a reparse. | 116 | "Abnormal hook run after a change results in a reparse. |
| 109 | Functions are called before the overlay is deleted, and after the | 117 | Functions are called before the overlay is deleted, and after the |
| 110 | incremental reparse.") | 118 | incremental reparse.") |
| @@ -133,7 +141,7 @@ Argument START, END, and LENGTH specify the bounds of the change." | |||
| 133 | (setq semantic-unmatched-syntax-cache-check t) | 141 | (setq semantic-unmatched-syntax-cache-check t) |
| 134 | (let ((inhibit-point-motion-hooks t) | 142 | (let ((inhibit-point-motion-hooks t) |
| 135 | ) | 143 | ) |
| 136 | (run-hook-with-args 'semantic-change-hooks start end length) | 144 | (run-hook-with-args 'semantic-change-functions start end length) |
| 137 | )) | 145 | )) |
| 138 | 146 | ||
| 139 | (defun semantic-changes-in-region (start end &optional buffer) | 147 | (defun semantic-changes-in-region (start end &optional buffer) |
| @@ -168,7 +176,7 @@ Argument START, END, and LENGTH specify the bounds of the change." | |||
| 168 | ;; function will be removed from the list of active change | 176 | ;; function will be removed from the list of active change |
| 169 | ;; functions. | 177 | ;; functions. |
| 170 | (condition-case nil | 178 | (condition-case nil |
| 171 | (run-hook-with-args 'semantic-edits-new-change-hooks o) | 179 | (run-hook-with-args 'semantic-edits-new-change-functions o) |
| 172 | (error nil))) | 180 | (error nil))) |
| 173 | (let ((tmp changes-in-change)) | 181 | (let ((tmp changes-in-change)) |
| 174 | ;; Find greatest bounds of all changes | 182 | ;; Find greatest bounds of all changes |
| @@ -188,7 +196,7 @@ Argument START, END, and LENGTH specify the bounds of the change." | |||
| 188 | ;; Delete other changes. They are now all bound here. | 196 | ;; Delete other changes. They are now all bound here. |
| 189 | (while changes-in-change | 197 | (while changes-in-change |
| 190 | (condition-case nil | 198 | (condition-case nil |
| 191 | (run-hook-with-args 'semantic-edits-delete-change-hooks | 199 | (run-hook-with-args 'semantic-edits-delete-change-functions |
| 192 | (car changes-in-change)) | 200 | (car changes-in-change)) |
| 193 | (error nil)) | 201 | (error nil)) |
| 194 | (semantic-overlay-delete (car changes-in-change)) | 202 | (semantic-overlay-delete (car changes-in-change)) |
| @@ -198,7 +206,7 @@ Argument START, END, and LENGTH specify the bounds of the change." | |||
| 198 | (defsubst semantic-edits-flush-change (change) | 206 | (defsubst semantic-edits-flush-change (change) |
| 199 | "Flush the CHANGE overlay." | 207 | "Flush the CHANGE overlay." |
| 200 | (condition-case nil | 208 | (condition-case nil |
| 201 | (run-hook-with-args 'semantic-edits-delete-change-hooks | 209 | (run-hook-with-args 'semantic-edits-delete-change-functions |
| 202 | change) | 210 | change) |
| 203 | (error nil)) | 211 | (error nil)) |
| 204 | (semantic-overlay-delete change)) | 212 | (semantic-overlay-delete change)) |
diff --git a/lisp/cedet/semantic/lex.el b/lisp/cedet/semantic/lex.el index d7ab5911a67..274df355901 100644 --- a/lisp/cedet/semantic/lex.el +++ b/lisp/cedet/semantic/lex.el | |||
| @@ -729,7 +729,9 @@ This is an alist of (ANCHOR . STREAM) elements where ANCHOR is the | |||
| 729 | start position of the block, and STREAM is the list of tokens in that | 729 | start position of the block, and STREAM is the list of tokens in that |
| 730 | block.") | 730 | block.") |
| 731 | 731 | ||
| 732 | (defvar semantic-lex-reset-hooks nil | 732 | (define-obsolete-variable-alias 'semantic-lex-reset-hooks |
| 733 | 'semantic-lex-reset-functions "24.3") | ||
| 734 | (defvar semantic-lex-reset-functions nil | ||
| 733 | "Abnormal hook used by major-modes to reset lexical analyzers. | 735 | "Abnormal hook used by major-modes to reset lexical analyzers. |
| 734 | Hook functions are called with START and END values for the | 736 | Hook functions are called with START and END values for the |
| 735 | current lexical pass. Should be set with `add-hook', specifying | 737 | current lexical pass. Should be set with `add-hook', specifying |
| @@ -771,7 +773,7 @@ analyzer which might mistake a number for as a symbol." | |||
| 771 | ;; Make sure the state of block parsing starts over. | 773 | ;; Make sure the state of block parsing starts over. |
| 772 | (setq semantic-lex-block-streams nil) | 774 | (setq semantic-lex-block-streams nil) |
| 773 | ;; Allow specialty reset items. | 775 | ;; Allow specialty reset items. |
| 774 | (run-hook-with-args 'semantic-lex-reset-hooks start end) | 776 | (run-hook-with-args 'semantic-lex-reset-functions start end) |
| 775 | ;; Lexing state. | 777 | ;; Lexing state. |
| 776 | (let* (;(starttime (current-time)) | 778 | (let* (;(starttime (current-time)) |
| 777 | (starting-position (point)) | 779 | (starting-position (point)) |
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el index ee8cbd2c3bc..6250edc8792 100644 --- a/lisp/emacs-lisp/checkdoc.el +++ b/lisp/emacs-lisp/checkdoc.el | |||
| @@ -124,7 +124,7 @@ | |||
| 124 | ;; Adding your own checks: | 124 | ;; Adding your own checks: |
| 125 | ;; | 125 | ;; |
| 126 | ;; You can experiment with adding your own checks by setting the | 126 | ;; You can experiment with adding your own checks by setting the |
| 127 | ;; hooks `checkdoc-style-hooks' and `checkdoc-comment-style-hooks'. | 127 | ;; hooks `checkdoc-style-functions' and `checkdoc-comment-style-hooks'. |
| 128 | ;; Return a string which is the error you wish to report. The cursor | 128 | ;; Return a string which is the error you wish to report. The cursor |
| 129 | ;; position should be preserved. | 129 | ;; position should be preserved. |
| 130 | ;; | 130 | ;; |
| @@ -274,17 +274,21 @@ made in the style guide relating to order." | |||
| 274 | :type 'boolean) | 274 | :type 'boolean) |
| 275 | ;;;###autoload(put 'checkdoc-arguments-in-order-flag 'safe-local-variable 'booleanp) | 275 | ;;;###autoload(put 'checkdoc-arguments-in-order-flag 'safe-local-variable 'booleanp) |
| 276 | 276 | ||
| 277 | (defvar checkdoc-style-hooks nil | 277 | (define-obsolete-variable-alias 'checkdoc-style-hooks |
| 278 | "Hooks called after the standard style check is completed. | 278 | 'checkdoc-style-functions "24.3") |
| 279 | All hooks must return nil or a string representing the error found. | 279 | (defvar checkdoc-style-functions nil |
| 280 | "Hook run after the standard style check is completed. | ||
| 281 | All functions must return nil or a string representing the error found. | ||
| 280 | Useful for adding new user implemented commands. | 282 | Useful for adding new user implemented commands. |
| 281 | 283 | ||
| 282 | Each hook is called with two parameters, (DEFUNINFO ENDPOINT). | 284 | Each hook is called with two parameters, (DEFUNINFO ENDPOINT). |
| 283 | DEFUNINFO is the return value of `checkdoc-defun-info'. ENDPOINT is the | 285 | DEFUNINFO is the return value of `checkdoc-defun-info'. ENDPOINT is the |
| 284 | location of end of the documentation string.") | 286 | location of end of the documentation string.") |
| 285 | 287 | ||
| 286 | (defvar checkdoc-comment-style-hooks nil | 288 | (define-obsolete-variable-alias 'checkdoc-comment-style-hooks |
| 287 | "Hooks called after the standard comment style check is completed. | 289 | checkdoc-comment-style-functions "24.3") |
| 290 | (defvar checkdoc-comment-style-functions nil | ||
| 291 | "Hook run after the standard comment style check is completed. | ||
| 288 | Must return nil if no errors are found, or a string describing the | 292 | Must return nil if no errors are found, or a string describing the |
| 289 | problem discovered. This is useful for adding additional checks.") | 293 | problem discovered. This is useful for adding additional checks.") |
| 290 | 294 | ||
| @@ -1843,7 +1847,7 @@ Replace with \"%s\"? " original replace) | |||
| 1843 | ;; and reliance on the Ispell program. | 1847 | ;; and reliance on the Ispell program. |
| 1844 | (checkdoc-ispell-docstring-engine e) | 1848 | (checkdoc-ispell-docstring-engine e) |
| 1845 | ;; User supplied checks | 1849 | ;; User supplied checks |
| 1846 | (save-excursion (checkdoc-run-hooks 'checkdoc-style-hooks fp e)) | 1850 | (save-excursion (checkdoc-run-hooks 'checkdoc-style-functions fp e)) |
| 1847 | ;; Done! | 1851 | ;; Done! |
| 1848 | ))) | 1852 | ))) |
| 1849 | 1853 | ||
| @@ -2353,7 +2357,7 @@ Code:, and others referenced in the style guide." | |||
| 2353 | err | 2357 | err |
| 2354 | (or | 2358 | (or |
| 2355 | ;; Generic Full-file checks (should be comment related) | 2359 | ;; Generic Full-file checks (should be comment related) |
| 2356 | (checkdoc-run-hooks 'checkdoc-comment-style-hooks) | 2360 | (checkdoc-run-hooks 'checkdoc-comment-style-functions) |
| 2357 | err)) | 2361 | err)) |
| 2358 | ;; Done with full file comment checks | 2362 | ;; Done with full file comment checks |
| 2359 | err))) | 2363 | err))) |
diff --git a/lisp/emacs-lisp/eieio.el b/lisp/emacs-lisp/eieio.el index 5f8cbea7c27..608134bd54f 100644 --- a/lisp/emacs-lisp/eieio.el +++ b/lisp/emacs-lisp/eieio.el | |||
| @@ -2066,7 +2066,9 @@ Keys are a number representing :before, :primary, and :after methods.") | |||
| 2066 | During executions, the list is first generated, then as each next method | 2066 | During executions, the list is first generated, then as each next method |
| 2067 | is called, the next method is popped off the stack.") | 2067 | is called, the next method is popped off the stack.") |
| 2068 | 2068 | ||
| 2069 | (defvar eieio-pre-method-execution-hooks nil | 2069 | (define-obsolete-variable-alias 'eieio-pre-method-execution-hooks |
| 2070 | 'eieio-pre-method-execution-functions "24.3") | ||
| 2071 | (defvar eieio-pre-method-execution-functions nil | ||
| 2070 | "Abnormal hook run just before an EIEIO method is executed. | 2072 | "Abnormal hook run just before an EIEIO method is executed. |
| 2071 | The hook function must accept one argument, the list of forms | 2073 | The hook function must accept one argument, the list of forms |
| 2072 | about to be executed.") | 2074 | about to be executed.") |
| @@ -2172,7 +2174,7 @@ This should only be called from a generic function." | |||
| 2172 | (eieiomt-method-list method method-primary nil))) | 2174 | (eieiomt-method-list method method-primary nil))) |
| 2173 | ) | 2175 | ) |
| 2174 | 2176 | ||
| 2175 | (run-hook-with-args 'eieio-pre-method-execution-hooks | 2177 | (run-hook-with-args 'eieio-pre-method-execution-functions |
| 2176 | primarymethodlist) | 2178 | primarymethodlist) |
| 2177 | 2179 | ||
| 2178 | ;; Now loop through all occurrences forms which we must execute | 2180 | ;; Now loop through all occurrences forms which we must execute |
| @@ -2277,7 +2279,7 @@ for this common case to improve performance." | |||
| 2277 | 2279 | ||
| 2278 | ;; Do the regular implementation here. | 2280 | ;; Do the regular implementation here. |
| 2279 | 2281 | ||
| 2280 | (run-hook-with-args 'eieio-pre-method-execution-hooks | 2282 | (run-hook-with-args 'eieio-pre-method-execution-functions |
| 2281 | lambdas) | 2283 | lambdas) |
| 2282 | 2284 | ||
| 2283 | (setq lastval (apply (car lambdas) newargs)) | 2285 | (setq lastval (apply (car lambdas) newargs)) |
diff --git a/lisp/filesets.el b/lisp/filesets.el index a91d8cf0fcb..7f695cf33dd 100644 --- a/lisp/filesets.el +++ b/lisp/filesets.el | |||
| @@ -403,8 +403,10 @@ Don't forget to check out `filesets-menu-ensure-use-cached'." | |||
| 403 | (sexp :tag "Other" :value nil))) | 403 | (sexp :tag "Other" :value nil))) |
| 404 | :group 'filesets) | 404 | :group 'filesets) |
| 405 | 405 | ||
| 406 | (defcustom filesets-cache-fill-content-hooks nil | 406 | (define-obsolete-variable-alias 'filesets-cache-fill-content-hooks |
| 407 | "Hooks to run when writing the contents of filesets' cache file. | 407 | 'filesets-cache-fill-content-hook "24.3") |
| 408 | (defcustom filesets-cache-fill-content-hook nil | ||
| 409 | "Hook run when writing the contents of filesets' cache file. | ||
| 408 | 410 | ||
| 409 | The hook is called with the cache file as current buffer and the cursor | 411 | The hook is called with the cache file as current buffer and the cursor |
| 410 | at the last position. I.e. each hook has to make sure that the cursor is | 412 | at the last position. I.e. each hook has to make sure that the cursor is |
| @@ -2414,7 +2416,7 @@ fileset thinks this is necessary or not." | |||
| 2414 | (when filesets-cache-hostname-flag | 2416 | (when filesets-cache-hostname-flag |
| 2415 | (insert (format "(setq filesets-cache-hostname %S)" (system-name))) | 2417 | (insert (format "(setq filesets-cache-hostname %S)" (system-name))) |
| 2416 | (newline 2)) | 2418 | (newline 2)) |
| 2417 | (run-hooks 'filesets-cache-fill-content-hooks) | 2419 | (run-hooks 'filesets-cache-fill-content-hook) |
| 2418 | (write-file filesets-menu-cache-file)) | 2420 | (write-file filesets-menu-cache-file)) |
| 2419 | (setq filesets-has-changed-flag nil) | 2421 | (setq filesets-has-changed-flag nil) |
| 2420 | (setq filesets-update-cache-file-flag nil))) | 2422 | (setq filesets-update-cache-file-flag nil))) |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index dade2b4bbe5..8cb53de85fa 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2012-10-23 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * nndiary.el (nndiary-request-create-group-functions) | ||
| 4 | (nndiary-request-update-info-functions) | ||
| 5 | (nndiary-request-accept-article-functions): | ||
| 6 | * gnus-start.el (gnus-subscribe-newsgroup-functions): Don't use | ||
| 7 | "-hooks" suffix. | ||
| 8 | |||
| 1 | 2012-10-17 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change) | 9 | 2012-10-17 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change) |
| 2 | 10 | ||
| 3 | * starttls.el (starttls-extra-arguments): Doc fix. | 11 | * starttls.el (starttls-extra-arguments): Doc fix. |
| @@ -110,7 +118,7 @@ | |||
| 110 | 118 | ||
| 111 | 2012-09-05 Martin Stjernholm <mast@lysator.liu.se> | 119 | 2012-09-05 Martin Stjernholm <mast@lysator.liu.se> |
| 112 | 120 | ||
| 113 | * gnus-demon.el (gnus-demon-init): Fixed regression when IDLE is t and | 121 | * gnus-demon.el (gnus-demon-init): Fix regression when IDLE is t and |
| 114 | TIME is set. | 122 | TIME is set. |
| 115 | 123 | ||
| 116 | 2012-09-05 Juri Linkov <juri@jurta.org> | 124 | 2012-09-05 Juri Linkov <juri@jurta.org> |
| @@ -571,7 +579,7 @@ | |||
| 571 | * gnus.el: Register gnus-registry functions. | 579 | * gnus.el: Register gnus-registry functions. |
| 572 | 580 | ||
| 573 | * gnus-registry.el (gnus-try-warping-via-registry): | 581 | * gnus-registry.el (gnus-try-warping-via-registry): |
| 574 | Moved here and indent. | 582 | Move here and indent. |
| 575 | 583 | ||
| 576 | * gnus-int.el (gnus-warp-to-article): | 584 | * gnus-int.el (gnus-warp-to-article): |
| 577 | Check whether the registry is enabled before warping. | 585 | Check whether the registry is enabled before warping. |
| @@ -703,7 +711,7 @@ | |||
| 703 | (message-multi-smtp-send-mail): Respect the X-Message-SMTP-Method | 711 | (message-multi-smtp-send-mail): Respect the X-Message-SMTP-Method |
| 704 | header to implement multi-SMTP functionality. | 712 | header to implement multi-SMTP functionality. |
| 705 | 713 | ||
| 706 | * gnus-agent.el (gnus-agent-send-mail-function): Removed. | 714 | * gnus-agent.el (gnus-agent-send-mail-function): Remove. |
| 707 | (gnus-agentize): Don't set it. | 715 | (gnus-agentize): Don't set it. |
| 708 | (gnus-agent-send-mail): Don't use it. | 716 | (gnus-agent-send-mail): Don't use it. |
| 709 | 717 | ||
| @@ -844,8 +852,8 @@ | |||
| 844 | 852 | ||
| 845 | 2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org> | 853 | 2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 846 | 854 | ||
| 847 | * gnus-group.el (gnus-group-get-new-news): Respect | 855 | * gnus-group.el (gnus-group-get-new-news): |
| 848 | `gnus-group-use-permanent-levels', as documented (bug#11638). | 856 | Respect `gnus-group-use-permanent-levels', as documented (bug#11638). |
| 849 | 857 | ||
| 850 | 2012-06-10 Dave Abrahams <dave@boostpro.com> | 858 | 2012-06-10 Dave Abrahams <dave@boostpro.com> |
| 851 | 859 | ||
| @@ -985,7 +993,7 @@ | |||
| 985 | (shr-insert): Allow the natural width to be computed for tables again. | 993 | (shr-insert): Allow the natural width to be computed for tables again. |
| 986 | (shr-tag-table-1): Rework how the natural widths are computed by | 994 | (shr-tag-table-1): Rework how the natural widths are computed by |
| 987 | rendering the table a third time. | 995 | rendering the table a third time. |
| 988 | (shr-natural-width): Removed. | 996 | (shr-natural-width): Remove. |
| 989 | (shr-buffer-width): New function. | 997 | (shr-buffer-width): New function. |
| 990 | (shr-expand-newlines): Use it. | 998 | (shr-expand-newlines): Use it. |
| 991 | 999 | ||
| @@ -1396,8 +1404,8 @@ | |||
| 1396 | 1404 | ||
| 1397 | 2012-01-04 Wolfgang Jenkner <wjenkner@inode.at> (tiny change) | 1405 | 2012-01-04 Wolfgang Jenkner <wjenkner@inode.at> (tiny change) |
| 1398 | 1406 | ||
| 1399 | * gnus-agent.el (gnus-agent-load-local): Recompute | 1407 | * gnus-agent.el (gnus-agent-load-local): |
| 1400 | gnus-agent-article-local on changing method. | 1408 | Recompute gnus-agent-article-local on changing method. |
| 1401 | 1409 | ||
| 1402 | 2012-01-04 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1410 | 2012-01-04 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 1403 | 1411 | ||
| @@ -1689,8 +1697,8 @@ | |||
| 1689 | 1697 | ||
| 1690 | 2011-09-27 Daiki Ueno <ueno@unixuser.org> | 1698 | 2011-09-27 Daiki Ueno <ueno@unixuser.org> |
| 1691 | 1699 | ||
| 1692 | * plstore.el (plstore-select-keys, plstore-encrypt-to): Clarify | 1700 | * plstore.el (plstore-select-keys, plstore-encrypt-to): |
| 1693 | documentation. | 1701 | Clarify documentation. |
| 1694 | 1702 | ||
| 1695 | 2011-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1703 | 2011-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 1696 | 1704 | ||
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index 40ee78bb695..eaf17d9e579 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -291,7 +291,9 @@ claim them." | |||
| 291 | function | 291 | function |
| 292 | (repeat function))) | 292 | (repeat function))) |
| 293 | 293 | ||
| 294 | (defcustom gnus-subscribe-newsgroup-hooks nil | 294 | (define-obsolete-variable-alias 'gnus-subscribe-newsgroup-hooks |
| 295 | 'gnus-subscribe-newsgroup-functions "24.3") | ||
| 296 | (defcustom gnus-subscribe-newsgroup-functions nil | ||
| 295 | "*Hooks run after you subscribe to a new group. | 297 | "*Hooks run after you subscribe to a new group. |
| 296 | The hooks will be called with new group's name as argument." | 298 | The hooks will be called with new group's name as argument." |
| 297 | :version "22.1" | 299 | :version "22.1" |
| @@ -639,7 +641,7 @@ the first newsgroup." | |||
| 639 | gnus-level-killed (gnus-group-entry (or next "dummy.group"))) | 641 | gnus-level-killed (gnus-group-entry (or next "dummy.group"))) |
| 640 | (gnus-request-update-group-status newsgroup 'subscribe) | 642 | (gnus-request-update-group-status newsgroup 'subscribe) |
| 641 | (gnus-message 5 "Subscribe newsgroup: %s" newsgroup) | 643 | (gnus-message 5 "Subscribe newsgroup: %s" newsgroup) |
| 642 | (run-hook-with-args 'gnus-subscribe-newsgroup-hooks newsgroup) | 644 | (run-hook-with-args 'gnus-subscribe-newsgroup-functions newsgroup) |
| 643 | t)) | 645 | t)) |
| 644 | 646 | ||
| 645 | (defun gnus-read-active-file-p () | 647 | (defun gnus-read-active-file-p () |
diff --git a/lisp/gnus/nndiary.el b/lisp/gnus/nndiary.el index 8752972c3c8..73dd2921b68 100644 --- a/lisp/gnus/nndiary.el +++ b/lisp/gnus/nndiary.el | |||
| @@ -179,22 +179,28 @@ In order to make this clear, here are some examples: | |||
| 179 | :group 'nndiary) | 179 | :group 'nndiary) |
| 180 | 180 | ||
| 181 | 181 | ||
| 182 | (defcustom nndiary-request-create-group-hooks nil | 182 | (define-obsolete-variable-alias 'nndiary-request-create-group-hooks |
| 183 | "*Hooks to run after `nndiary-request-create-group' is executed. | 183 | 'nndiary-request-create-group-functions "24.3") |
| 184 | The hooks will be called with the full group name as argument." | 184 | (defcustom nndiary-request-create-group-functions nil |
| 185 | "*Hook run after `nndiary-request-create-group' is executed. | ||
| 186 | The hook functions will be called with the full group name as argument." | ||
| 185 | :group 'nndiary | 187 | :group 'nndiary |
| 186 | :type 'hook) | 188 | :type 'hook) |
| 187 | 189 | ||
| 188 | (defcustom nndiary-request-update-info-hooks nil | 190 | (define-obsolete-variable-alias 'nndiary-request-update-info-hooks |
| 189 | "*Hooks to run after `nndiary-request-update-info-group' is executed. | 191 | 'nndiary-request-update-info-functions "24.3") |
| 190 | The hooks will be called with the full group name as argument." | 192 | (defcustom nndiary-request-update-info-functions nil |
| 193 | "*Hook run after `nndiary-request-update-info-group' is executed. | ||
| 194 | The hook functions will be called with the full group name as argument." | ||
| 191 | :group 'nndiary | 195 | :group 'nndiary |
| 192 | :type 'hook) | 196 | :type 'hook) |
| 193 | 197 | ||
| 194 | (defcustom nndiary-request-accept-article-hooks nil | 198 | (define-obsolete-variable-alias 'nndiary-request-accept-article-hooks |
| 195 | "*Hooks to run before accepting an article. | 199 | 'nndiary-request-accept-article-functions "24.3") |
| 200 | (defcustom nndiary-request-accept-article-functions nil | ||
| 201 | "*Hook run before accepting an article. | ||
| 196 | Executed near the beginning of `nndiary-request-accept-article'. | 202 | Executed near the beginning of `nndiary-request-accept-article'. |
| 197 | The hooks will be called with the article in the current buffer." | 203 | The hook functions will be called with the article in the current buffer." |
| 198 | :group 'nndiary | 204 | :group 'nndiary |
| 199 | :type 'hook) | 205 | :type 'hook) |
| 200 | 206 | ||
| @@ -541,7 +547,7 @@ all. This may very well take some time.") | |||
| 541 | (setcar active (apply 'min articles)) | 547 | (setcar active (apply 'min articles)) |
| 542 | (setcdr active (apply 'max articles)))) | 548 | (setcdr active (apply 'max articles)))) |
| 543 | (nnmail-save-active nndiary-group-alist nndiary-active-file) | 549 | (nnmail-save-active nndiary-group-alist nndiary-active-file) |
| 544 | (run-hook-with-args 'nndiary-request-create-group-hooks | 550 | (run-hook-with-args 'nndiary-request-create-group-functions |
| 545 | (gnus-group-prefixed-name group | 551 | (gnus-group-prefixed-name group |
| 546 | (list "nndiary" server))) | 552 | (list "nndiary" server))) |
| 547 | t)) | 553 | t)) |
| @@ -633,7 +639,7 @@ all. This may very well take some time.") | |||
| 633 | (deffoo nndiary-request-accept-article (group &optional server last) | 639 | (deffoo nndiary-request-accept-article (group &optional server last) |
| 634 | (nndiary-possibly-change-directory group server) | 640 | (nndiary-possibly-change-directory group server) |
| 635 | (nnmail-check-syntax) | 641 | (nnmail-check-syntax) |
| 636 | (run-hooks 'nndiary-request-accept-article-hooks) | 642 | (run-hooks 'nndiary-request-accept-article-functions) |
| 637 | (when (nndiary-schedule) | 643 | (when (nndiary-schedule) |
| 638 | (let (result) | 644 | (let (result) |
| 639 | (when nnmail-cache-accepted-message-ids | 645 | (when nnmail-cache-accepted-message-ids |
| @@ -804,7 +810,7 @@ all. This may very well take some time.") | |||
| 804 | (gnus-info-set-read info (gnus-update-read-articles | 810 | (gnus-info-set-read info (gnus-update-read-articles |
| 805 | (gnus-info-group info) unread t))) | 811 | (gnus-info-group info) unread t))) |
| 806 | )) | 812 | )) |
| 807 | (run-hook-with-args 'nndiary-request-update-info-hooks | 813 | (run-hook-with-args 'nndiary-request-update-info-functions |
| 808 | (gnus-info-group info)) | 814 | (gnus-info-group info)) |
| 809 | t)) | 815 | t)) |
| 810 | 816 | ||
diff --git a/lisp/htmlfontify.el b/lisp/htmlfontify.el index b0bc5b6b3b3..a1853a6e04b 100644 --- a/lisp/htmlfontify.el +++ b/lisp/htmlfontify.el | |||
| @@ -249,7 +249,8 @@ when not running under a window system." | |||
| 249 | :tag "init-kludge-hooks" | 249 | :tag "init-kludge-hooks" |
| 250 | :type '(hook)) | 250 | :type '(hook)) |
| 251 | 251 | ||
| 252 | (defcustom hfy-post-html-hooks nil | 252 | (define-obsolete-variable-alias 'hfy-post-html-hooks 'hfy-post-html-hook "24.3") |
| 253 | (defcustom hfy-post-html-hook nil | ||
| 253 | "List of functions to call after creating and filling the HTML buffer. | 254 | "List of functions to call after creating and filling the HTML buffer. |
| 254 | These functions will be called with the HTML buffer as the current buffer." | 255 | These functions will be called with the HTML buffer as the current buffer." |
| 255 | :group 'htmlfontify | 256 | :group 'htmlfontify |
| @@ -1786,7 +1787,7 @@ FILE, if set, is the file name." | |||
| 1786 | ;;(message "inserting footer") | 1787 | ;;(message "inserting footer") |
| 1787 | (insert (funcall hfy-page-footer file))) | 1788 | (insert (funcall hfy-page-footer file))) |
| 1788 | ;; call any post html-generation hooks: | 1789 | ;; call any post html-generation hooks: |
| 1789 | (run-hooks 'hfy-post-html-hooks) | 1790 | (run-hooks 'hfy-post-html-hook) |
| 1790 | ;; return the html buffer | 1791 | ;; return the html buffer |
| 1791 | (set-buffer-modified-p nil) | 1792 | (set-buffer-modified-p nil) |
| 1792 | html-buffer)) | 1793 | html-buffer)) |
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 331754fb1b5..afa13fe4e04 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -243,15 +243,14 @@ Used by `mail-yank-original' via `mail-indent-citation'." | |||
| 243 | :type 'integer | 243 | :type 'integer |
| 244 | :group 'sendmail) | 244 | :group 'sendmail) |
| 245 | 245 | ||
| 246 | ;; FIXME make it really obsolete. | ||
| 247 | (defvar mail-yank-hooks nil | 246 | (defvar mail-yank-hooks nil |
| 248 | "Obsolete hook for modifying a citation just inserted in the mail buffer. | 247 | "Obsolete hook for modifying a citation just inserted in the mail buffer. |
| 249 | Each hook function can find the citation between (point) and (mark t). | 248 | Each hook function can find the citation between (point) and (mark t). |
| 250 | And each hook function should leave point and mark around the citation | 249 | And each hook function should leave point and mark around the citation |
| 251 | text as modified. | 250 | text as modified. |
| 252 | |||
| 253 | This is a normal hook, misnamed for historical reasons. | 251 | This is a normal hook, misnamed for historical reasons. |
| 254 | It is semi-obsolete and mail agents should no longer use it.") | 252 | It is obsolete and mail agents should no longer use it.") |
| 253 | (make-obsolete-variable 'mail-yank-hooks 'mail-citation-hook "19.34") | ||
| 255 | 254 | ||
| 256 | ;;;###autoload | 255 | ;;;###autoload |
| 257 | (defcustom mail-citation-hook nil | 256 | (defcustom mail-citation-hook nil |
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 6eedef1980e..adc8707f011 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-10-23 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * mh-letter.el (mh-yank-hooks): Use make-obsolete-variable. | ||
| 4 | |||
| 1 | 2012-04-25 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2012-04-25 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * mh-utils.el (minibuffer-completing-file-name): Don't declare, unused. | 7 | * mh-utils.el (minibuffer-completing-file-name): Don't declare, unused. |
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el index 2723fb5e684..705c92b0b4c 100644 --- a/lisp/mh-e/mh-e.el +++ b/lisp/mh-e/mh-e.el | |||
| @@ -3189,7 +3189,9 @@ function used to insert the signature with | |||
| 3189 | :group 'mh-letter | 3189 | :group 'mh-letter |
| 3190 | :package-version '(MH-E . "8.0")) | 3190 | :package-version '(MH-E . "8.0")) |
| 3191 | 3191 | ||
| 3192 | (defcustom-mh mh-kill-folder-suppress-prompt-hooks '(mh-search-p) | 3192 | (define-obsolete-variable-alias 'mh-kill-folder-suppress-prompt-hooks |
| 3193 | 'mh-kill-folder-suppress-prompt-functions "24.3") | ||
| 3194 | (defcustom-mh mh-kill-folder-suppress-prompt-functions '(mh-search-p) | ||
| 3193 | "Abnormal hook run at the beginning of \\<mh-folder-mode-map>\\[mh-kill-folder]. | 3195 | "Abnormal hook run at the beginning of \\<mh-folder-mode-map>\\[mh-kill-folder]. |
| 3194 | 3196 | ||
| 3195 | The hook functions are called with no arguments and should return | 3197 | The hook functions are called with no arguments and should return |
diff --git a/lisp/mh-e/mh-letter.el b/lisp/mh-e/mh-letter.el index 8aed1873348..490bfc07560 100644 --- a/lisp/mh-e/mh-letter.el +++ b/lisp/mh-e/mh-letter.el | |||
| @@ -66,8 +66,9 @@ Each hook function can find the citation between point and mark. | |||
| 66 | And each hook function should leave point and mark around the | 66 | And each hook function should leave point and mark around the |
| 67 | citation text as modified. | 67 | citation text as modified. |
| 68 | 68 | ||
| 69 | This is a normal hook, misnamed for historical reasons. It is | 69 | This is a normal hook, misnamed for historical reasons. |
| 70 | semi-obsolete and is only used if `mail-citation-hook' is nil.") | 70 | It is obsolete and is only used if `mail-citation-hook' is nil.") |
| 71 | (make-obsolete-variable 'mh-yank-hooks 'mail-citation-hook "19.34") | ||
| 71 | 72 | ||
| 72 | 73 | ||
| 73 | 74 | ||
diff --git a/lisp/net/dbus.el b/lisp/net/dbus.el index 772a0a9c626..c95e901c39d 100644 --- a/lisp/net/dbus.el +++ b/lisp/net/dbus.el | |||
| @@ -152,7 +152,9 @@ Otherwise, return result of last form in BODY, or all other errors." | |||
| 152 | (dbus-error (when dbus-debug (signal (car err) (cdr err)))))) | 152 | (dbus-error (when dbus-debug (signal (car err) (cdr err)))))) |
| 153 | (font-lock-add-keywords 'emacs-lisp-mode '("\\<dbus-ignore-errors\\>")) | 153 | (font-lock-add-keywords 'emacs-lisp-mode '("\\<dbus-ignore-errors\\>")) |
| 154 | 154 | ||
| 155 | (defvar dbus-event-error-hooks nil | 155 | (define-obsolete-variable-alias 'dbus-event-error-hooks |
| 156 | 'dbus-event-error-functions "24.3") | ||
| 157 | (defvar dbus-event-error-functions nil | ||
| 156 | "Functions to be called when a D-Bus error happens in the event handler. | 158 | "Functions to be called when a D-Bus error happens in the event handler. |
| 157 | Every function must accept two arguments, the event and the error variable | 159 | Every function must accept two arguments, the event and the error variable |
| 158 | caught in `condition-case' by `dbus-error'.") | 160 | caught in `condition-case' by `dbus-error'.") |
| @@ -947,7 +949,7 @@ If the HANDLER returns a `dbus-error', it is propagated as return message." | |||
| 947 | (dbus-method-error-internal | 949 | (dbus-method-error-internal |
| 948 | (nth 1 event) (nth 4 event) (nth 3 event) (cadr err)))) | 950 | (nth 1 event) (nth 4 event) (nth 3 event) (cadr err)))) |
| 949 | ;; Propagate D-Bus error messages. | 951 | ;; Propagate D-Bus error messages. |
| 950 | (run-hook-with-args 'dbus-event-error-hooks event err) | 952 | (run-hook-with-args 'dbus-event-error-functions event err) |
| 951 | (when (or dbus-debug (= dbus-message-type-error (nth 2 event))) | 953 | (when (or dbus-debug (= dbus-message-type-error (nth 2 event))) |
| 952 | (signal (car err) (cdr err)))))) | 954 | (signal (car err) (cdr err)))))) |
| 953 | 955 | ||
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index dd345630b9b..e9828c5f813 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el | |||
| @@ -300,7 +300,9 @@ See `rcirc-dim-nick' face." | |||
| 300 | :type '(repeat string) | 300 | :type '(repeat string) |
| 301 | :group 'rcirc) | 301 | :group 'rcirc) |
| 302 | 302 | ||
| 303 | (defcustom rcirc-print-hooks nil | 303 | (define-obsolete-variable-alias 'rcirc-print-hooks |
| 304 | 'rcirc-print-functions "24.3") | ||
| 305 | (defcustom rcirc-print-functions nil | ||
| 304 | "Hook run after text is printed. | 306 | "Hook run after text is printed. |
| 305 | Called with 5 arguments, PROCESS, SENDER, RESPONSE, TARGET and TEXT." | 307 | Called with 5 arguments, PROCESS, SENDER, RESPONSE, TARGET and TEXT." |
| 306 | :type 'hook | 308 | :type 'hook |
| @@ -647,7 +649,9 @@ is non-nil." | |||
| 647 | "] " | 649 | "] " |
| 648 | text))))) | 650 | text))))) |
| 649 | 651 | ||
| 650 | (defvar rcirc-sentinel-hooks nil | 652 | (define-obsolete-variable-alias 'rcirc-sentinel-hooks |
| 653 | 'rcirc-sentinel-functions "24.3") | ||
| 654 | (defvar rcirc-sentinel-functions nil | ||
| 651 | "Hook functions called when the process sentinel is called. | 655 | "Hook functions called when the process sentinel is called. |
| 652 | Functions are called with PROCESS and SENTINEL arguments.") | 656 | Functions are called with PROCESS and SENTINEL arguments.") |
| 653 | 657 | ||
| @@ -664,7 +668,7 @@ Functions are called with PROCESS and SENTINEL arguments.") | |||
| 664 | sentinel | 668 | sentinel |
| 665 | (process-status process)) (not rcirc-target)) | 669 | (process-status process)) (not rcirc-target)) |
| 666 | (rcirc-disconnect-buffer))) | 670 | (rcirc-disconnect-buffer))) |
| 667 | (run-hook-with-args 'rcirc-sentinel-hooks process sentinel)))) | 671 | (run-hook-with-args 'rcirc-sentinel-functions process sentinel)))) |
| 668 | 672 | ||
| 669 | (defun rcirc-disconnect-buffer (&optional buffer) | 673 | (defun rcirc-disconnect-buffer (&optional buffer) |
| 670 | (with-current-buffer (or buffer (current-buffer)) | 674 | (with-current-buffer (or buffer (current-buffer)) |
| @@ -684,7 +688,9 @@ Functions are called with PROCESS and SENTINEL arguments.") | |||
| 684 | (process-list)) | 688 | (process-list)) |
| 685 | ps)) | 689 | ps)) |
| 686 | 690 | ||
| 687 | (defvar rcirc-receive-message-hooks nil | 691 | (define-obsolete-variable-alias 'rcirc-receive-message-hooks |
| 692 | 'rcirc-receive-message-functions "24.3") | ||
| 693 | (defvar rcirc-receive-message-functions nil | ||
| 688 | "Hook functions run when a message is received from server. | 694 | "Hook functions run when a message is received from server. |
| 689 | Function is called with PROCESS, COMMAND, SENDER, ARGS and LINE.") | 695 | Function is called with PROCESS, COMMAND, SENDER, ARGS and LINE.") |
| 690 | (defun rcirc-filter (process output) | 696 | (defun rcirc-filter (process output) |
| @@ -738,7 +744,7 @@ Function is called with PROCESS, COMMAND, SENDER, ARGS and LINE.") | |||
| 738 | (if (not (fboundp handler)) | 744 | (if (not (fboundp handler)) |
| 739 | (rcirc-handler-generic process cmd sender args text) | 745 | (rcirc-handler-generic process cmd sender args text) |
| 740 | (funcall handler process sender args text)) | 746 | (funcall handler process sender args text)) |
| 741 | (run-hook-with-args 'rcirc-receive-message-hooks | 747 | (run-hook-with-args 'rcirc-receive-message-functions |
| 742 | process cmd sender args text))) | 748 | process cmd sender args text))) |
| 743 | (message "UNHANDLED: %s" text))) | 749 | (message "UNHANDLED: %s" text))) |
| 744 | 750 | ||
| @@ -1625,7 +1631,7 @@ record activity." | |||
| 1625 | (rcirc-log process sender response target text)) | 1631 | (rcirc-log process sender response target text)) |
| 1626 | 1632 | ||
| 1627 | (sit-for 0) ; displayed text before hook | 1633 | (sit-for 0) ; displayed text before hook |
| 1628 | (run-hook-with-args 'rcirc-print-hooks | 1634 | (run-hook-with-args 'rcirc-print-functions |
| 1629 | process sender response target text))))) | 1635 | process sender response target text))))) |
| 1630 | 1636 | ||
| 1631 | (defun rcirc-generate-log-filename (process target) | 1637 | (defun rcirc-generate-log-filename (process target) |
| @@ -1927,7 +1933,9 @@ With prefix ARG, go to the next low priority buffer with activity." | |||
| 1927 | (key-description (this-command-keys)) | 1933 | (key-description (this-command-keys)) |
| 1928 | " for low priority activity.")))))))) | 1934 | " for low priority activity.")))))))) |
| 1929 | 1935 | ||
| 1930 | (defvar rcirc-activity-hooks nil | 1936 | (define-obsolete-variable-alias 'rcirc-activity-hooks |
| 1937 | 'rcirc-activity-functions "24.3") | ||
| 1938 | (defvar rcirc-activity-functions nil | ||
| 1931 | "Hook to be run when there is channel activity. | 1939 | "Hook to be run when there is channel activity. |
| 1932 | 1940 | ||
| 1933 | Functions are called with a single argument, the buffer with the | 1941 | Functions are called with a single argument, the buffer with the |
| @@ -1950,7 +1958,7 @@ activity. Only run if the buffer is not visible and | |||
| 1950 | (unless (and (equal rcirc-activity old-activity) | 1958 | (unless (and (equal rcirc-activity old-activity) |
| 1951 | (member type old-types)) | 1959 | (member type old-types)) |
| 1952 | (rcirc-update-activity-string))))) | 1960 | (rcirc-update-activity-string))))) |
| 1953 | (run-hook-with-args 'rcirc-activity-hooks buffer)) | 1961 | (run-hook-with-args 'rcirc-activity-functions buffer)) |
| 1954 | 1962 | ||
| 1955 | (defun rcirc-clear-activity (buffer) | 1963 | (defun rcirc-clear-activity (buffer) |
| 1956 | "Clear the BUFFER activity." | 1964 | "Clear the BUFFER activity." |
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index 2a000957589..50eaebe4dec 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el | |||
| @@ -1703,7 +1703,9 @@ Key bindings: | |||
| 1703 | (message "Using CC Mode version %s" c-version) | 1703 | (message "Using CC Mode version %s" c-version) |
| 1704 | (c-keep-region-active)) | 1704 | (c-keep-region-active)) |
| 1705 | 1705 | ||
| 1706 | (defvar c-prepare-bug-report-hooks nil) | 1706 | (define-obsolete-variable-alias 'c-prepare-bug-report-hooks |
| 1707 | 'c-prepare-bug-report-hook "24.3") | ||
| 1708 | (defvar c-prepare-bug-report-hook nil) | ||
| 1707 | 1709 | ||
| 1708 | ;; Dynamic variables used by reporter. | 1710 | ;; Dynamic variables used by reporter. |
| 1709 | (defvar reporter-prompt-for-summary-p) | 1711 | (defvar reporter-prompt-for-summary-p) |
| @@ -1770,7 +1772,7 @@ Key bindings: | |||
| 1770 | lookup-syntax-properties)) | 1772 | lookup-syntax-properties)) |
| 1771 | vars) | 1773 | vars) |
| 1772 | (lambda () | 1774 | (lambda () |
| 1773 | (run-hooks 'c-prepare-bug-report-hooks) | 1775 | (run-hooks 'c-prepare-bug-report-hook) |
| 1774 | (insert (format "Buffer Style: %s\nc-emacs-features: %s\n" | 1776 | (insert (format "Buffer Style: %s\nc-emacs-features: %s\n" |
| 1775 | style c-features))))))) | 1777 | style c-features))))))) |
| 1776 | 1778 | ||
diff --git a/lisp/subr.el b/lisp/subr.el index 0f30976b023..94012fc47de 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -1260,12 +1260,10 @@ is converted into a string by expressing it in decimal." | |||
| 1260 | (define-obsolete-variable-alias 'executing-macro 'executing-kbd-macro | 1260 | (define-obsolete-variable-alias 'executing-macro 'executing-kbd-macro |
| 1261 | "before 19.34") | 1261 | "before 19.34") |
| 1262 | 1262 | ||
| 1263 | (defvaralias 'x-lost-selection-hooks 'x-lost-selection-functions) | 1263 | (define-obsolete-variable-alias 'x-lost-selection-hooks |
| 1264 | (make-obsolete-variable 'x-lost-selection-hooks | 1264 | 'x-lost-selection-functions "22.1") |
| 1265 | 'x-lost-selection-functions "22.1") | 1265 | (define-obsolete-variable-alias 'x-sent-selection-hooks |
| 1266 | (defvaralias 'x-sent-selection-hooks 'x-sent-selection-functions) | 1266 | 'x-sent-selection-functions "22.1") |
| 1267 | (make-obsolete-variable 'x-sent-selection-hooks | ||
| 1268 | 'x-sent-selection-functions "22.1") | ||
| 1269 | 1267 | ||
| 1270 | ;; This was introduced in 21.4 for pre-unicode unification. That | 1268 | ;; This was introduced in 21.4 for pre-unicode unification. That |
| 1271 | ;; usage was rendered obsolete in 23.1 which uses Unicode internally. | 1269 | ;; usage was rendered obsolete in 23.1 which uses Unicode internally. |
diff --git a/lisp/term/sun.el b/lisp/term/sun.el index 4bd22c1d8da..dfe7a63ac1b 100644 --- a/lisp/term/sun.el +++ b/lisp/term/sun.el | |||
| @@ -123,6 +123,7 @@ | |||
| 123 | 123 | ||
| 124 | (defvar sun-raw-prefix-hooks nil | 124 | (defvar sun-raw-prefix-hooks nil |
| 125 | "List of forms to evaluate after setting sun-raw-prefix.") | 125 | "List of forms to evaluate after setting sun-raw-prefix.") |
| 126 | (make-obsolete-variable 'sun-raw-prefix-hooks 'term-setup-hook "21.1") | ||
| 126 | 127 | ||
| 127 | 128 | ||
| 128 | 129 | ||
diff --git a/lisp/vc/ediff-mult.el b/lisp/vc/ediff-mult.el index 9e6f5769c8f..5c471664fdc 100644 --- a/lisp/vc/ediff-mult.el +++ b/lisp/vc/ediff-mult.el | |||
| @@ -217,8 +217,9 @@ This can be toggled with `ediff-toggle-filename-truncation'." | |||
| 217 | :type 'hook | 217 | :type 'hook |
| 218 | :group 'ediff-mult) | 218 | :group 'ediff-mult) |
| 219 | 219 | ||
| 220 | (defcustom ediff-before-session-group-setup-hooks nil | 220 | (defcustom ediff-before-session-group-setup-hooks |
| 221 | "Hooks to run before Ediff arranges the window for group-level operations. | 221 | nil ;FIXME: Bad name (should be -hook or -functions) and never run?? |
| 222 | "Hook run before Ediff arranges the window for group-level operations. | ||
| 222 | It is used by commands such as `ediff-directories'. | 223 | It is used by commands such as `ediff-directories'. |
| 223 | This hook can be used to save the previous window config, which can be restored | 224 | This hook can be used to save the previous window config, which can be restored |
| 224 | on `ediff-quit', `ediff-suspend', or `ediff-quit-session-group-hook'." | 225 | on `ediff-quit', `ediff-suspend', or `ediff-quit-session-group-hook'." |