]> git.eshelyaron.com Git - emacs.git/commitdiff
Use new names for hooks rather than obsolete aliases
authorGlenn Morris <rgm@gnu.org>
Tue, 13 Nov 2012 03:11:46 +0000 (19:11 -0800)
committerGlenn Morris <rgm@gnu.org>
Tue, 13 Nov 2012 03:11:46 +0000 (19:11 -0800)
* lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-lex-text-string):
* lisp/cedet/semantic/util.el (semantic-describe-buffer):
* lisp/cedet/semantic/bovine/c.el (semantic-c-parse-lexical-token)
(semantic-default-c-setup):
* lisp/emacs-lisp/eieio-datadebug.el (eieio-debug-methodinvoke):
* lisp/gnus/gnus-diary.el (nndiary-request-create-group-functions)
(nndiary-request-update-info-functions)
(gnus-subscribe-newsgroup-functions)
(nndiary-request-accept-article-functions):
* lisp/net/tramp-gvfs.el (tramp-gvfs-dbus-event-error):
Use new names for hooks rather than obsolete aliases.

* lisp/arc-mode.el:
* lisp/emacs-lisp/checkdoc.el: Related comments.

* etc/NEWS: Related markup.

12 files changed:
etc/NEWS
lisp/ChangeLog
lisp/arc-mode.el
lisp/cedet/ChangeLog
lisp/cedet/semantic/bovine/c.el
lisp/cedet/semantic/lex-spp.el
lisp/cedet/semantic/util.el
lisp/emacs-lisp/checkdoc.el
lisp/emacs-lisp/eieio-datadebug.el
lisp/gnus/ChangeLog
lisp/gnus/gnus-diary.el
lisp/net/tramp-gvfs.el

index 623b40bb64f1176533a3528a185317fef8eaaa4f..0010646941568f75e45c0beae4598c5de8ad9be0 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -629,6 +629,7 @@ enabled.
 
 ** FIXME something happened to ses.el, 2012-04-17.
 
++++
 ** Hooks renamed to avoid obsolete "-hooks" suffix:
 *** semantic-lex-reset-hooks -> semantic-lex-reset-functions
 *** semantic-change-hooks -> semantic-change-functions
index 2ad7230e9123a99c76792da6cc89dcd5a1182cf6..61d202433fcba16ab1ab58aaf4b964dadf9181ca 100644 (file)
@@ -1,3 +1,9 @@
+2012-11-13  Glenn Morris  <rgm@gnu.org>
+
+       * emacs-lisp/eieio-datadebug.el (eieio-debug-methodinvoke):
+       * net/tramp-gvfs.el (tramp-gvfs-dbus-event-error):
+       Use new names for hooks rather than obsolete aliases.
+
 2012-11-12  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * emacs-lisp/gv.el (gv-define-simple-setter): One more fix (bug#12871).
index cebd4302d0c96414b0ca1c941a0d7a9a6c9f67bc..9fc91a242d2738870bde7b1f90acb912f45366d9 100644 (file)
@@ -96,7 +96,7 @@
 ;;
 ;; archive-mode-hook
 ;; archive-foo-mode-hook
-;; archive-extract-hooks
+;; archive-extract-hook
 
 ;;; Code:
 
index 6de901848c7571b558894bf23254531463ddf502..56207c7ae57da3ea107bf1a27007df3b35bfe8a6 100644 (file)
@@ -1,3 +1,11 @@
+2012-11-13  Glenn Morris  <rgm@gnu.org>
+
+       * semantic/lex-spp.el (semantic-lex-spp-lex-text-string):
+       * semantic/util.el (semantic-describe-buffer):
+       * semantic/bovine/c.el (semantic-c-parse-lexical-token)
+       (semantic-default-c-setup):
+       Use new names for hooks rather than obsolete aliases.
+
 2012-11-12  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * semantic/mru-bookmark.el (semantic-mru-bookmark-mode):
index 02ad6e05d1a895f50523b38bce743df167216018..a3d57108d1d1e1cc7c599725b90638b41c04deeb 100644 (file)
@@ -931,8 +931,8 @@ the regular parser."
          (setq semantic-new-buffer-fcn-was-run t)
          (semantic-lex-init)
          (semantic-clear-toplevel-cache)
-         (remove-hook 'semantic-lex-reset-hooks 'semantic-lex-spp-reset-hook
-                      t)
+         (remove-hook 'semantic-lex-reset-functions
+                      'semantic-lex-spp-reset-hook t)
          )
        ;; Get the macro symbol table right.
        (setq semantic-lex-spp-dynamic-macro-symbol-obarray spp-syms)
@@ -2073,7 +2073,7 @@ actually in their parent which is not accessible.")
         )
 
   (setq semantic-lex-analyzer #'semantic-c-lexer)
-  (add-hook 'semantic-lex-reset-hooks 'semantic-lex-spp-reset-hook nil t)
+  (add-hook 'semantic-lex-reset-functions 'semantic-lex-spp-reset-hook nil t)
   (when (eq major-mode 'c++-mode)
     (add-to-list 'semantic-lex-c-preprocessor-symbol-map '("__cplusplus" . "")))
   )
index 406f2900563910fc45459dbb810de0fa052504f4..ad366c2b94fa28cb190aae6aefeb5c6bb23c4c2b 100644 (file)
@@ -30,7 +30,7 @@
 ;; If you use SPP in your language, be sure to specify this in your
 ;; semantic language setup function:
 ;;
-;; (add-hook 'semantic-lex-reset-hooks 'semantic-lex-spp-reset-hook nil t)
+;; (add-hook 'semantic-lex-reset-functions 'semantic-lex-spp-reset-hook nil t)
 ;;
 ;;
 ;; Special Lexical Tokens:
@@ -947,8 +947,8 @@ and variable state from the current buffer."
            (setq semantic-new-buffer-fcn-was-run t)
            (semantic-lex-init)
            (semantic-clear-toplevel-cache)
-           (remove-hook 'semantic-lex-reset-hooks 'semantic-lex-spp-reset-hook
-                        t)
+           (remove-hook 'semantic-lex-reset-functions
+                        'semantic-lex-spp-reset-hook t)
            ))
 
        ;; Second Cheat: copy key variables regarding macro state from the
index 65201c4fd129ad963a98e26bca9fbec6472c1fbf..f3d30f6af5c61fc37aafcc755204fd3cc6fb3a90 100644 (file)
@@ -280,7 +280,7 @@ If TAG is not specified, use the tag at point."
                      semantic-parser-name
                      semantic-parse-tree-state
                      semantic-lex-analyzer
-                     semantic-lex-reset-hooks
+                     semantic-lex-reset-functions
                      semantic-lex-syntax-modifications
                      )))
          (dolist (V vars)
index ffa42e97221b2bda2d0923a0de04438a61032c3d..1cbed17cbab68bee6c64a2d96b00e4e6398bd800 100644 (file)
 ;; Adding your own checks:
 ;;
 ;;   You can experiment with adding your own checks by setting the
-;; hooks `checkdoc-style-functions' and `checkdoc-comment-style-hooks'.
+;; hooks `checkdoc-style-functions' and `checkdoc-comment-style-functions'.
 ;; Return a string which is the error you wish to report.  The cursor
 ;; position should be preserved.
 ;;
index ec470d21bf30d1e6ab34135d4969f6a7f532e58c..a1db1972b83f394102ca3289cf6263f853458009 100644 (file)
@@ -131,7 +131,7 @@ PREBUTTONTEXT is some text between PREFIX and the object button."
 (defun eieio-debug-methodinvoke (method class)
   "Show the method invocation order for METHOD with CLASS object."
   (interactive "aMethod: \nXClass Expression: ")
-  (let* ((eieio-pre-method-execution-hooks
+  (let* ((eieio-pre-method-execution-functions
          (lambda (l) (throw 'moose l) ))
         (data
          (catch 'moose (eieio-generic-call
index 8cb53de85fa1a2aed7f23ca997a73d957de74b9e..d1cf22fd9711af04d4aa21f468738ea2575ef539 100644 (file)
@@ -1,3 +1,11 @@
+2012-11-13  Glenn Morris  <rgm@gnu.org>
+
+       * gnus-diary.el (nndiary-request-create-group-functions)
+       (nndiary-request-update-info-functions)
+       (gnus-subscribe-newsgroup-functions)
+       (nndiary-request-accept-article-functions):
+       Use new names for hooks rather than obsolete aliases.
+
 2012-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * nndiary.el (nndiary-request-create-group-functions)
index 854af2f5d76638602661bc2038e50869aa1c2632..bca307b19b66fbdd8d43b7af2bd9598c0bb05f6e 100644 (file)
@@ -277,18 +277,18 @@ Optional prefix (or REVERSE argument) means sort in reverse order."
 
 ;; Called when a group is subscribed. This is needed because groups created
 ;; because of mail splitting are *not* created with the back end function.
-;; Thus, `nndiary-request-create-group-hooks' is inoperative.
+;; Thus, `nndiary-request-create-group-functions' is inoperative.
 (defun gnus-diary-maybe-update-group-parameters (group)
   (when (eq (car (gnus-find-method-for-group group)) 'nndiary)
     (gnus-diary-update-group-parameters group)))
 
-(add-hook 'nndiary-request-create-group-hooks
+(add-hook 'nndiary-request-create-group-functions
          'gnus-diary-update-group-parameters)
-;; Now that we have `gnus-subscribe-newsgroup-hooks', this is not needed
+;; Now that we have `gnus-subscribe-newsgroup-functions', this is not needed
 ;; anymore. Maybe I should remove this completely.
-(add-hook 'nndiary-request-update-info-hooks
+(add-hook 'nndiary-request-update-info-functions
          'gnus-diary-update-group-parameters)
-(add-hook 'gnus-subscribe-newsgroup-hooks
+(add-hook 'gnus-subscribe-newsgroup-functions
          'gnus-diary-maybe-update-group-parameters)
 
 
@@ -384,7 +384,7 @@ If ARG (or prefix) is non-nil, force prompting for all fields."
      nndiary-headers)
     ))
 
-(add-hook 'nndiary-request-accept-article-hooks
+(add-hook 'nndiary-request-accept-article-functions
          (lambda () (gnus-diary-check-message nil)))
 
 (define-key message-mode-map "\C-c\C-fd" 'gnus-diary-check-message)
index 60b39606d86be978dea01e4067f48ef9e4d002f0..0aa1b8957ac320f7961c8bcaca623316ea643134 100644 (file)
@@ -521,12 +521,12 @@ It is needed when D-Bus signals or errors arrive, because there
 is no information where to trace the message.")
 
 (defun tramp-gvfs-dbus-event-error (event err)
-  "Called when a D-Bus error message arrives, see `dbus-event-error-hooks'."
+  "Called when a D-Bus error message arrives, see `dbus-event-error-functions'."
   (when tramp-gvfs-dbus-event-vector
     (tramp-message tramp-gvfs-dbus-event-vector 10 "%S" event)
     (tramp-error tramp-gvfs-dbus-event-vector 'file-error "%s" (cadr err))))
 
-(add-hook 'dbus-event-error-hooks 'tramp-gvfs-dbus-event-error)
+(add-hook 'dbus-event-error-functions 'tramp-gvfs-dbus-event-error)
 
 \f
 ;; File name primitives.