Commit 0ae27881 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(menu-bar-goto-menu) [next-tag, next-tag-otherw]:

Don't call ring-empty-p unless tags-location-ring is bound.
From Noah Friedman <friedman@splode.com>.
parent a23c5037
......@@ -326,12 +326,14 @@ A large number or nil slows down menu responsiveness."
(define-key menu-bar-goto-menu [next-tag-otherw]
'(menu-item "Next Tag in Other Window"
(function (lambda () (find-tag-other-window nil t)))
:enable (not (ring-empty-p tags-location-ring))
:enable (and (boundp 'tags-location-ring)
(not (ring-empty-p tags-location-ring)))
:help "Find next function/variable matching last tag name in another window"))
(define-key menu-bar-goto-menu [next-tag]
'(menu-item "Find Next Tag"
(function (lambda () (find-tag nil t)))
:enable (not (ring-empty-p tags-location-ring))
:enable (and (boundp 'tags-location-ring)
(not (ring-empty-p tags-location-ring)))
:help "Find next function/variable matching last tag name"))
(define-key menu-bar-goto-menu [find-tag-otherw]
'(menu-item "Find Tag in Other Window..." find-tag-other-window
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment