diff options
| author | Francesco Potortì | 2002-09-06 15:12:15 +0000 |
|---|---|---|
| committer | Francesco Potortì | 2002-09-06 15:12:15 +0000 |
| commit | 8a294d9090a0991cdd2db1e9f6290c84e7a32af4 (patch) | |
| tree | a782e4db5d5da5637946d1670ee51aa8a232d992 | |
| parent | 8bb4cb854802245821e7481ba713f7afbe423ee5 (diff) | |
| download | emacs-8a294d9090a0991cdd2db1e9f6290c84e7a32af4.tar.gz emacs-8a294d9090a0991cdd2db1e9f6290c84e7a32af4.zip | |
(find-tag-tag, complete-tag): Bind
completion-ignore-case based on tags-case-fold-search, so that
case-sensitivity of tag completion matches that of tag search.
| -rw-r--r-- | lisp/progmodes/etags.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index ed9959a1c02..8d988f45341 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -785,7 +785,10 @@ Assumes the tags table is the current buffer." | |||
| 785 | 785 | ||
| 786 | ;; Read a tag name from the minibuffer with defaulting and completion. | 786 | ;; Read a tag name from the minibuffer with defaulting and completion. |
| 787 | (defun find-tag-tag (string) | 787 | (defun find-tag-tag (string) |
| 788 | (let* ((default (funcall (or find-tag-default-function | 788 | (let* ((completion-ignore-case (if (memq tags-case-fold-search '(t nil)) |
| 789 | tags-case-fold-search | ||
| 790 | case-fold-search)) | ||
| 791 | (default (funcall (or find-tag-default-function | ||
| 789 | (get major-mode 'find-tag-default-function) | 792 | (get major-mode 'find-tag-default-function) |
| 790 | 'find-tag-default))) | 793 | 'find-tag-default))) |
| 791 | (spec (completing-read (if default | 794 | (spec (completing-read (if default |
| @@ -1910,7 +1913,10 @@ for \\[find-tag] (which see)." | |||
| 1910 | (error "%s" | 1913 | (error "%s" |
| 1911 | (substitute-command-keys | 1914 | (substitute-command-keys |
| 1912 | "No tags table loaded; try \\[visit-tags-table]"))) | 1915 | "No tags table loaded; try \\[visit-tags-table]"))) |
| 1913 | (let ((pattern (funcall (or find-tag-default-function | 1916 | (let ((completion-ignore-case (if (memq tags-case-fold-search '(t nil)) |
| 1917 | tags-case-fold-search | ||
| 1918 | case-fold-search)) | ||
| 1919 | (pattern (funcall (or find-tag-default-function | ||
| 1914 | (get major-mode 'find-tag-default-function) | 1920 | (get major-mode 'find-tag-default-function) |
| 1915 | 'find-tag-default))) | 1921 | 'find-tag-default))) |
| 1916 | beg | 1922 | beg |