]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove XEmacs compat code from meta-mode.el
authorStefan Kangas <stefankangas@gmail.com>
Sun, 20 Oct 2019 20:48:28 +0000 (22:48 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Sun, 20 Oct 2019 20:52:02 +0000 (22:52 +0200)
* lisp/progmodes/meta-mode.el (meta-mode-menu):
(meta-mode-load-hook): Remove XEmacs compat code.

lisp/progmodes/meta-mode.el

index 8d3745be7c9376281735d194c5f619931611b277..b31fe3390cba9dfab5f46376aa7ca2b811affb73 100644 (file)
@@ -871,15 +871,15 @@ The environment marked is the one that contains point or follows point."
        ["Indent Line"                   meta-indent-line t]
        ["Indent Environment"            meta-indent-defun t]
        ["Indent Region"                 meta-indent-region
-        :active (meta-mark-active)]
+        :active mark-active]
        ["Indent Buffer"                 meta-indent-buffer t]
        "--"
        ["Comment Out Environment"       meta-comment-defun t]
        ["Uncomment Environment"         meta-uncomment-defun t]
        ["Comment Out Region"            meta-comment-region
-        :active (meta-mark-active)]
+        :active mark-active]
        ["Uncomment Region"              meta-uncomment-region
-        :active (meta-mark-active)]
+        :active mark-active]
        "--"
        ["Complete Symbol"               completion-at-point t]
 ;      "--"
@@ -888,12 +888,6 @@ The environment marked is the one that contains point or follows point."
 ;      ["Recenter Output Buffer"        meta-recenter-output-buffer t]
        ))
 
-;; Compatibility: XEmacs doesn't have the  `mark-active' variable.
-(defun meta-mark-active ()
-  "Return whether the mark and region are currently active in this buffer."
-  (if (boundp 'mark-active) mark-active (mark)))
-
-
 \f
 ;;; Hook variables.