aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-06-20 14:05:53 +0200
committerLars Ingebrigtsen2019-06-20 14:05:53 +0200
commit2396aea6fdd3fbcb5c54880db3ce09122742f6c2 (patch)
treeb0673d84665b5da8defe5394362a8a0e0d9214d1
parent2c5a3f413b7477544ba8f5b18ed233ea6ab6f2aa (diff)
downloademacs-2396aea6fdd3fbcb5c54880db3ce09122742f6c2.tar.gz
emacs-2396aea6fdd3fbcb5c54880db3ce09122742f6c2.zip
Fix compilation warning in esh-mode
* lisp/eshell/esh-mode.el (eshell-mode): Remove special binding for M-. in eshell buffers: The comment indicates that this is outdated code. (eshell-find-tag): Make obsolete.
-rw-r--r--lisp/eshell/esh-mode.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index 5644928114e..80844c3a646 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -326,10 +326,6 @@ and the hook `eshell-exit-hook'."
326 (setq-local eshell-command-map (symbol-function eshell-command-prefix)) 326 (setq-local eshell-command-map (symbol-function eshell-command-prefix))
327 (define-key eshell-mode-map [(control ?c)] eshell-command-prefix) 327 (define-key eshell-mode-map [(control ?c)] eshell-command-prefix)
328 328
329 ;; without this, find-tag complains about read-only text being
330 ;; modified
331 (if (eq (key-binding [(meta ?.)]) 'find-tag)
332 (define-key eshell-mode-map [(meta ?.)] 'eshell-find-tag))
333 (define-key eshell-command-map [(meta ?o)] 'eshell-mark-output) 329 (define-key eshell-command-map [(meta ?o)] 'eshell-mark-output)
334 (define-key eshell-command-map [(meta ?d)] 'eshell-toggle-direct-send) 330 (define-key eshell-command-map [(meta ?d)] 'eshell-toggle-direct-send)
335 331
@@ -490,13 +486,15 @@ and the hook `eshell-exit-hook'."
490 486
491(defun eshell-find-tag (&optional tagname next-p regexp-p) 487(defun eshell-find-tag (&optional tagname next-p regexp-p)
492 "A special version of `find-tag' that ignores whether the text is read-only." 488 "A special version of `find-tag' that ignores whether the text is read-only."
489 (declare (obsolete xref-find-definition "27.1"))
493 (interactive) 490 (interactive)
494 (require 'etags) 491 (require 'etags)
495 (let ((inhibit-read-only t) 492 (let ((inhibit-read-only t)
496 (no-default (eobp)) 493 (no-default (eobp))
497 (find-tag-default-function 'ignore)) 494 (find-tag-default-function 'ignore))
498 (setq tagname (car (find-tag-interactive "Find tag: " no-default))) 495 (setq tagname (car (find-tag-interactive "Find tag: " no-default)))
499 (find-tag tagname next-p regexp-p))) 496 (with-suppressed-warnings ((obsolete find-tag))
497 (find-tag tagname next-p regexp-p))))
500 498
501(defun eshell-move-argument (limit func property arg) 499(defun eshell-move-argument (limit func property arg)
502 "Move forward ARG arguments." 500 "Move forward ARG arguments."