From e5bd0a28953dcf6c3b811a7d17e7664c8d664a7c Mon Sep 17 00:00:00 2001
From: Stefan Monnier <monnier@iro.umontreal.ca>
Date: Sat, 12 May 2012 23:05:06 -0400
Subject: Move define-obsolete-variable-alias before the var's definition. *
 lisp/vc/log-edit.el (vc-comment-ring, vc-comment-ring-index): *
 lisp/tooltip.el (tooltip-hook): * lisp/textmodes/reftex-toc.el
 (reftex-toc-map): * lisp/textmodes/reftex-sel.el (reftex-select-label-map)
 (reftex-select-bib-map): * lisp/textmodes/reftex-index.el (reftex-index-map)
 (reftex-index-phrases-map): * lisp/speedbar.el (speedbar-syntax-table,
 speedbar-key-map): * lisp/progmodes/meta-mode.el (meta-mode-map): *
 lisp/novice.el (disabled-command-hook): * lisp/loadhist.el
 (unload-hook-features-list): * lisp/frame.el (blink-cursor): * lisp/files.el
 (find-file-not-found-hooks, write-file-hooks) (write-contents-hooks): *
 lisp/emulation/tpu-edt.el (GOLD-map): * lisp/emacs-lock.el
 (emacs-lock-from-exiting): * lisp/emacs-lisp/generic.el
 (generic-font-lock-defaults): * lisp/emacs-lisp/chart.el (chart-map): *
 lisp/dos-fns.el (register-name-alist): * lisp/dired-x.el
 (dired-omit-files-p): * lisp/desktop.el (desktop-enable): * lisp/cus-edit.el
 (custom-mode-hook): * lisp/buff-menu.el (buffer-menu-mode-hook): *
 lisp/bookmark.el (bookmark-read-annotation-text-func) (bookmark-exit-hooks):
 * lisp/allout.el (allout-mode-deactivate-hook) (allout-exposure-change-hook,
 allout-structure-added-hook) (allout-structure-deleted-hook,
 allout-structure-shifted-hook): * lisp/dirtrack.el (dirtrack-toggle,
 dirtrackp, dirtrack-debug-toggle) (dirtrack-debug): Move call to
 define-obsolete-variable-alias so it comes before the corresponding
 variable's definition.

---
 lisp/tooltip.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'lisp/tooltip.el')

diff --git a/lisp/tooltip.el b/lisp/tooltip.el
index 1fab25fe5cd..9d0fbaae9d8 100644
--- a/lisp/tooltip.el
+++ b/lisp/tooltip.el
@@ -154,6 +154,8 @@ This variable is obsolete; instead of setting it to t, disable
 
 ;;; Variables that are not customizable.
 
+(define-obsolete-variable-alias 'tooltip-hook 'tooltip-functions "23.1")
+
 (defvar tooltip-functions nil
   "Functions to call to display tooltips.
 Each function is called with one argument EVENT which is a copy
@@ -161,8 +163,6 @@ of the last mouse movement event that occurred.  If one of these
 functions displays the tooltip, it should return non-nil and the
 rest are not called.")
 
-(define-obsolete-variable-alias 'tooltip-hook 'tooltip-functions "23.1")
-
 (defvar tooltip-timeout-id nil
   "The id of the timeout started when Emacs becomes idle.")
 
-- 
cgit v1.2.3