summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2019-10-17 13:13:05 +0200
committerStefan Kangas <stefankangas@gmail.com>2019-10-17 13:13:05 +0200
commit96fe257e73b3f692604de166423dbf2667bc2ec8 (patch)
treec9a91455a503eaa6a90758750f5ec6cdcc008d65 /lisp
parentbf5a72ac9450c0cc67ac0630bfa7f128988a852f (diff)
downloademacs-96fe257e73b3f692604de166423dbf2667bc2ec8.tar.gz
Remove XEmacs compat code from tcl.el
* lisp/progmodes/tcl.el (tcl-mode): Remove XEmacs compat code. (tcl-popup-menu): Declare obsolete.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/tcl.el21
1 files changed, 3 insertions, 18 deletions
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el
index e5fdd272438..dcdc614c587 100644
--- a/lisp/progmodes/tcl.el
+++ b/lisp/progmodes/tcl.el
@@ -604,9 +604,6 @@ already exist."
(set (make-local-variable 'dabbrev-abbrev-char-regexp) "\\sw\\|\\s_")
(set (make-local-variable 'parse-sexp-ignore-comments) t)
- ;; XEmacs has defun-prompt-regexp, but I don't believe
- ;; that it works for end-of-defun -- only for
- ;; beginning-of-defun.
(set (make-local-variable 'defun-prompt-regexp) tcl-omit-ws-regexp)
(set (make-local-variable 'add-log-current-defun-function)
'tcl-add-log-defun)
@@ -614,11 +611,7 @@ already exist."
(setq-local beginning-of-defun-function #'tcl-beginning-of-defun-function)
(setq-local end-of-defun-function #'tcl-end-of-defun-function)
- (easy-menu-add tcl-mode-menu)
- ;; Append Tcl menu to popup menu for XEmacs.
- (if (boundp 'mode-popup-menu)
- (setq mode-popup-menu
- (cons (concat mode-name " Mode Commands") tcl-mode-menu))))
+ (easy-menu-add tcl-mode-menu))
@@ -1541,17 +1534,9 @@ The first line is assumed to look like \"#!.../program ...\"."
(if (looking-at "#![^ \t]*/\\([^ \t\n/]+\\)\\([ \t]\\|$\\)")
(set (make-local-variable 'tcl-application) (match-string 1)))))
-
-
-;;
-;; XEmacs menu support.
-;; Taken from schmid@fb3-s7.math.TU-Berlin.DE (Gregor Schmid),
-;; who wrote a different Tcl mode.
-;; We also have support for menus in Emacs. We do this by
-;; loading the XEmacs menu emulation code.
-;;
-
(defun tcl-popup-menu (_e)
+ "XEmacs menu support."
+ (declare (obsolete nil "27.1"))
(interactive "@e")
(popup-menu tcl-mode-menu))