diff options
| author | Stefan Kangas | 2019-10-17 13:13:05 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2019-10-17 13:13:05 +0200 |
| commit | 96fe257e73b3f692604de166423dbf2667bc2ec8 (patch) | |
| tree | c9a91455a503eaa6a90758750f5ec6cdcc008d65 /lisp/progmodes | |
| parent | bf5a72ac9450c0cc67ac0630bfa7f128988a852f (diff) | |
| download | emacs-96fe257e73b3f692604de166423dbf2667bc2ec8.tar.gz emacs-96fe257e73b3f692604de166423dbf2667bc2ec8.zip | |
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/progmodes')
| -rw-r--r-- | lisp/progmodes/tcl.el | 21 |
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." | |||
| 604 | (set (make-local-variable 'dabbrev-abbrev-char-regexp) "\\sw\\|\\s_") | 604 | (set (make-local-variable 'dabbrev-abbrev-char-regexp) "\\sw\\|\\s_") |
| 605 | 605 | ||
| 606 | (set (make-local-variable 'parse-sexp-ignore-comments) t) | 606 | (set (make-local-variable 'parse-sexp-ignore-comments) t) |
| 607 | ;; XEmacs has defun-prompt-regexp, but I don't believe | ||
| 608 | ;; that it works for end-of-defun -- only for | ||
| 609 | ;; beginning-of-defun. | ||
| 610 | (set (make-local-variable 'defun-prompt-regexp) tcl-omit-ws-regexp) | 607 | (set (make-local-variable 'defun-prompt-regexp) tcl-omit-ws-regexp) |
| 611 | (set (make-local-variable 'add-log-current-defun-function) | 608 | (set (make-local-variable 'add-log-current-defun-function) |
| 612 | 'tcl-add-log-defun) | 609 | 'tcl-add-log-defun) |
| @@ -614,11 +611,7 @@ already exist." | |||
| 614 | (setq-local beginning-of-defun-function #'tcl-beginning-of-defun-function) | 611 | (setq-local beginning-of-defun-function #'tcl-beginning-of-defun-function) |
| 615 | (setq-local end-of-defun-function #'tcl-end-of-defun-function) | 612 | (setq-local end-of-defun-function #'tcl-end-of-defun-function) |
| 616 | 613 | ||
| 617 | (easy-menu-add tcl-mode-menu) | 614 | (easy-menu-add tcl-mode-menu)) |
| 618 | ;; Append Tcl menu to popup menu for XEmacs. | ||
| 619 | (if (boundp 'mode-popup-menu) | ||
| 620 | (setq mode-popup-menu | ||
| 621 | (cons (concat mode-name " Mode Commands") tcl-mode-menu)))) | ||
| 622 | 615 | ||
| 623 | 616 | ||
| 624 | 617 | ||
| @@ -1541,17 +1534,9 @@ The first line is assumed to look like \"#!.../program ...\"." | |||
| 1541 | (if (looking-at "#![^ \t]*/\\([^ \t\n/]+\\)\\([ \t]\\|$\\)") | 1534 | (if (looking-at "#![^ \t]*/\\([^ \t\n/]+\\)\\([ \t]\\|$\\)") |
| 1542 | (set (make-local-variable 'tcl-application) (match-string 1))))) | 1535 | (set (make-local-variable 'tcl-application) (match-string 1))))) |
| 1543 | 1536 | ||
| 1544 | |||
| 1545 | |||
| 1546 | ;; | ||
| 1547 | ;; XEmacs menu support. | ||
| 1548 | ;; Taken from schmid@fb3-s7.math.TU-Berlin.DE (Gregor Schmid), | ||
| 1549 | ;; who wrote a different Tcl mode. | ||
| 1550 | ;; We also have support for menus in Emacs. We do this by | ||
| 1551 | ;; loading the XEmacs menu emulation code. | ||
| 1552 | ;; | ||
| 1553 | |||
| 1554 | (defun tcl-popup-menu (_e) | 1537 | (defun tcl-popup-menu (_e) |
| 1538 | "XEmacs menu support." | ||
| 1539 | (declare (obsolete nil "27.1")) | ||
| 1555 | (interactive "@e") | 1540 | (interactive "@e") |
| 1556 | (popup-menu tcl-mode-menu)) | 1541 | (popup-menu tcl-mode-menu)) |
| 1557 | 1542 | ||