diff options
| author | Eli Zaretskii | 2001-01-11 10:18:42 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-01-11 10:18:42 +0000 |
| commit | 926861fbc1bbcc0f7143be623e517ab1156ddae7 (patch) | |
| tree | 9f87466c73410f6e2c9b86d002679d39117c8417 | |
| parent | 7742ee19243d8b631b144199b84170e22ac9ac60 (diff) | |
| download | emacs-926861fbc1bbcc0f7143be623e517ab1156ddae7.tar.gz emacs-926861fbc1bbcc0f7143be623e517ab1156ddae7.zip | |
(find-tag-interactive): If last-tag is nil,
behave as if there were no prefix argument.
(find-tag-noselect): If last-tag is nil, behave as if the NEXT-P
argument were nil.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/progmodes/etags.el | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7ecc2faa17b..38bd3397935 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2001-01-11 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * progmodes/etags.el (find-tag-interactive): If last-tag is nil, | ||
| 4 | behave as if there were no prefix argument. | ||
| 5 | (find-tag-noselect): If last-tag is nil, behave as if the NEXT-P | ||
| 6 | argument were nil. | ||
| 7 | |||
| 1 | 2001-01-11 Richard M. Stallman <rms@gnu.org> | 8 | 2001-01-11 Richard M. Stallman <rms@gnu.org> |
| 2 | 9 | ||
| 3 | * isearch.el (isearch-lazy-highlight-update): | 10 | * isearch.el (isearch-lazy-highlight-update): |
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index a6fa0f8e289..e01a1448af8 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -782,7 +782,7 @@ Assumes the tags table is the current buffer." | |||
| 782 | 782 | ||
| 783 | ;; Get interactive args for find-tag{-noselect,-other-window,-regexp}. | 783 | ;; Get interactive args for find-tag{-noselect,-other-window,-regexp}. |
| 784 | (defun find-tag-interactive (prompt &optional no-default) | 784 | (defun find-tag-interactive (prompt &optional no-default) |
| 785 | (if current-prefix-arg | 785 | (if (and current-prefix-arg last-tag) |
| 786 | (list nil (if (< (prefix-numeric-value current-prefix-arg) 0) | 786 | (list nil (if (< (prefix-numeric-value current-prefix-arg) 0) |
| 787 | '- | 787 | '- |
| 788 | t)) | 788 | t)) |
| @@ -839,7 +839,7 @@ See documentation of variable `tags-file-name'." | |||
| 839 | (run-hooks 'local-find-tag-hook)))) | 839 | (run-hooks 'local-find-tag-hook)))) |
| 840 | ;; Record whence we came. | 840 | ;; Record whence we came. |
| 841 | (ring-insert find-tag-marker-ring (point-marker)) | 841 | (ring-insert find-tag-marker-ring (point-marker)) |
| 842 | (if next-p | 842 | (if (and next-p last-tag) |
| 843 | ;; Find the same table we last used. | 843 | ;; Find the same table we last used. |
| 844 | (visit-tags-table-buffer 'same) | 844 | (visit-tags-table-buffer 'same) |
| 845 | ;; Pick a table to use. | 845 | ;; Pick a table to use. |
| @@ -852,7 +852,7 @@ See documentation of variable `tags-file-name'." | |||
| 852 | (set-buffer | 852 | (set-buffer |
| 853 | ;; find-tag-in-order does the real work. | 853 | ;; find-tag-in-order does the real work. |
| 854 | (find-tag-in-order | 854 | (find-tag-in-order |
| 855 | (if next-p last-tag tagname) | 855 | (if (and next-p last-tag) last-tag tagname) |
| 856 | (if regexp-p | 856 | (if regexp-p |
| 857 | find-tag-regexp-search-function | 857 | find-tag-regexp-search-function |
| 858 | find-tag-search-function) | 858 | find-tag-search-function) |
| @@ -863,7 +863,7 @@ See documentation of variable `tags-file-name'." | |||
| 863 | find-tag-regexp-next-line-after-failure-p | 863 | find-tag-regexp-next-line-after-failure-p |
| 864 | find-tag-next-line-after-failure-p) | 864 | find-tag-next-line-after-failure-p) |
| 865 | (if regexp-p "matching" "containing") | 865 | (if regexp-p "matching" "containing") |
| 866 | (not next-p))) | 866 | (or (not next-p) (not last-tag)))) |
| 867 | (set-marker marker (point)) | 867 | (set-marker marker (point)) |
| 868 | (run-hooks 'local-find-tag-hook) | 868 | (run-hooks 'local-find-tag-hook) |
| 869 | (ring-insert tags-location-ring marker) | 869 | (ring-insert tags-location-ring marker) |