aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2014-12-29 02:36:57 +0200
committerDmitry Gutov2014-12-29 02:36:57 +0200
commitc1eec814857c59069c8115bf83fce3548a8684b8 (patch)
tree4bbe34b6b8e48633e48a0f073f2964182bf2f8d0
parent9fb9136398821ed5f3a8b4405bbc222964f54028 (diff)
downloademacs-c1eec814857c59069c8115bf83fce3548a8684b8.tar.gz
emacs-c1eec814857c59069c8115bf83fce3548a8684b8.zip
Declare many etags command obsolete; update the goto menu
* lisp/menu-bar.el (menu-bar-goto-menu): Replace all but one etags item with xref ones. * lisp/progmodes/etags.el (find-tag-other-window) (find-tag-other-frame, find-tag-regexp, tags-loop-continue) (tags-apropos): Declare obsolete.
-rw-r--r--etc/NEWS5
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/menu-bar.el33
-rw-r--r--lisp/progmodes/etags.el5
4 files changed, 32 insertions, 20 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 4d632783812..548f409348a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -456,6 +456,11 @@ easier binding, which is now unoccupied (`M-,').
456alias for a private variable. `xref-push-marker-stack' and 456alias for a private variable. `xref-push-marker-stack' and
457`xref-pop-marker-stack' should be used to mutate it instead. 457`xref-pop-marker-stack' should be used to mutate it instead.
458 458
459** etags
460As a result of the above, these commands are now obsolete:
461`find-tag-other-window', `find-tag-other-frame', `find-tag-regexp',
462`tags-apropos' and `tags-loop-continue'.
463
459** Obsolete packages 464** Obsolete packages
460 465
461--- 466---
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ba7503fb753..f1501799a22 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12014-12-29 Dmitry Gutov <dgutov@yandex.ru>
2
3 * progmodes/etags.el (find-tag-other-window)
4 (find-tag-other-frame, find-tag-regexp, tags-loop-continue)
5 (tags-apropos): Declare obsolete.
6
7 * menu-bar.el (menu-bar-goto-menu): Replace all but one etags item
8 with xref ones.
9
12014-12-28 Eli Zaretskii <eliz@gnu.org> 102014-12-28 Eli Zaretskii <eliz@gnu.org>
2 11
3 * international/mule.el (define-coding-system): Fix typos in the 12 * international/mule.el (define-coding-system): Fix typos in the
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 8f33641a746..74a807095dc 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -378,30 +378,23 @@
378 (bindings--define-key menu [separator-tag-file] 378 (bindings--define-key menu [separator-tag-file]
379 menu-bar-separator) 379 menu-bar-separator)
380 380
381 (bindings--define-key menu [apropos-tags] 381 (bindings--define-key menu [xref-pop]
382 '(menu-item "Tags Apropos..." tags-apropos 382 '(menu-item "Back..." xref-pop-marker-stack
383 :help "Back to the position of the last search"))
384
385 (bindings--define-key menu [xref-apropos]
386 '(menu-item "Find Apropos..." xref-find-apropos
383 :help "Find function/variables whose names match regexp")) 387 :help "Find function/variables whose names match regexp"))
384 (bindings--define-key menu [next-tag-otherw] 388
385 '(menu-item "Next Tag in Other Window" 389 (bindings--define-key menu [xref-find-otherw]
386 menu-bar-next-tag-other-window 390 '(menu-item "Find Definition in Other Window..."
387 :enable (and (boundp 'tags-location-ring) 391 xref-find-definitions-other-window
388 (not (ring-empty-p tags-location-ring)))
389 :help "Find next function/variable matching last tag name in another window"))
390
391 (bindings--define-key menu [next-tag]
392 '(menu-item "Find Next Tag"
393 menu-bar-next-tag
394 :enable (and (boundp 'tags-location-ring)
395 (not (ring-empty-p tags-location-ring)))
396 :help "Find next function/variable matching last tag name"))
397 (bindings--define-key menu [find-tag-otherw]
398 '(menu-item "Find Tag in Other Window..." find-tag-other-window
399 :help "Find function/variable definition in another window")) 392 :help "Find function/variable definition in another window"))
400 (bindings--define-key menu [find-tag] 393 (bindings--define-key menu [xref-find-def]
401 '(menu-item "Find Tag..." find-tag 394 '(menu-item "Find Definition..." xref-find-definitions
402 :help "Find definition of function or variable")) 395 :help "Find definition of function or variable"))
403 396
404 (bindings--define-key menu [separator-tags] 397 (bindings--define-key menu [separator-xref]
405 menu-bar-separator) 398 menu-bar-separator)
406 399
407 (bindings--define-key menu [end-of-buf] 400 (bindings--define-key menu [end-of-buf]
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 0be99794356..be0dabf17b2 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -975,6 +975,7 @@ onto a ring and may be popped back to with \\[pop-tag-mark].
975Contrast this with the ring of marks gone to by the command. 975Contrast this with the ring of marks gone to by the command.
976 976
977See documentation of variable `tags-file-name'." 977See documentation of variable `tags-file-name'."
978 (declare (obsolete xref-find-definitions-other-window "25.1"))
978 (interactive (find-tag-interactive "Find tag other window: ")) 979 (interactive (find-tag-interactive "Find tag other window: "))
979 980
980 ;; This hair is to deal with the case where the tag is found in the 981 ;; This hair is to deal with the case where the tag is found in the
@@ -1015,6 +1016,7 @@ onto a ring and may be popped back to with \\[pop-tag-mark].
1015Contrast this with the ring of marks gone to by the command. 1016Contrast this with the ring of marks gone to by the command.
1016 1017
1017See documentation of variable `tags-file-name'." 1018See documentation of variable `tags-file-name'."
1019 (declare (obsolete xref-find-definitions-other-frame "25.1"))
1018 (interactive (find-tag-interactive "Find tag other frame: ")) 1020 (interactive (find-tag-interactive "Find tag other frame: "))
1019 (let ((pop-up-frames t)) 1021 (let ((pop-up-frames t))
1020 (find-tag-other-window tagname next-p))) 1022 (find-tag-other-window tagname next-p)))
@@ -1037,6 +1039,7 @@ onto a ring and may be popped back to with \\[pop-tag-mark].
1037Contrast this with the ring of marks gone to by the command. 1039Contrast this with the ring of marks gone to by the command.
1038 1040
1039See documentation of variable `tags-file-name'." 1041See documentation of variable `tags-file-name'."
1042 (declare (obsolete xref-find-apropos "25.1"))
1040 (interactive (find-tag-interactive "Find tag regexp: " t)) 1043 (interactive (find-tag-interactive "Find tag regexp: " t))
1041 ;; We go through find-tag-other-window to do all the display hair there. 1044 ;; We go through find-tag-other-window to do all the display hair there.
1042 (funcall (if other-window 'find-tag-other-window 'find-tag) 1045 (funcall (if other-window 'find-tag-other-window 'find-tag)
@@ -1786,6 +1789,7 @@ Two variables control the processing we do on each file: the value of
1786interesting (it returns non-nil if so) and `tags-loop-operate' is a form to 1789interesting (it returns non-nil if so) and `tags-loop-operate' is a form to
1787evaluate to operate on an interesting file. If the latter evaluates to 1790evaluate to operate on an interesting file. If the latter evaluates to
1788nil, we exit; otherwise we scan the next file." 1791nil, we exit; otherwise we scan the next file."
1792 (declare (obsolete "use `xref-find-definitions' interface instead." "25.1"))
1789 (interactive) 1793 (interactive)
1790 (let (new 1794 (let (new
1791 ;; Non-nil means we have finished one file 1795 ;; Non-nil means we have finished one file
@@ -1929,6 +1933,7 @@ directory specification."
1929;;;###autoload 1933;;;###autoload
1930(defun tags-apropos (regexp) 1934(defun tags-apropos (regexp)
1931 "Display list of all tags in tags table REGEXP matches." 1935 "Display list of all tags in tags table REGEXP matches."
1936 (declare (obsolete xref-find-apropos "25.1"))
1932 (interactive "sTags apropos (regexp): ") 1937 (interactive "sTags apropos (regexp): ")
1933 (with-output-to-temp-buffer "*Tags List*" 1938 (with-output-to-temp-buffer "*Tags List*"
1934 (princ "Click mouse-2 to follow tags.\n\nTags matching regexp `") 1939 (princ "Click mouse-2 to follow tags.\n\nTags matching regexp `")