aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-06-12 17:51:59 +0200
committerUlrich Müller <ulm@gentoo.org>2023-06-12 17:51:59 +0200
commitb2ae3184ccfcb1ff932f207ca432ebbf964de0c1 (patch)
tree85f1a685a7f5eb0e67f8d74e823703c83acdc034
parenteselect-mode: Update copyright years before writing a file (diff)
downloadeselect-b2ae3184ccfcb1ff932f207ca432ebbf964de0c1.tar.gz
eselect-b2ae3184ccfcb1ff932f207ca432ebbf964de0c1.tar.bz2
eselect-b2ae3184ccfcb1ff932f207ca432ebbf964de0c1.zip
eselect-mode: Drop XEmacs compatibility code
* misc/eselect-mode.el (eselect-mode): Drop XEmacs compatibility code. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--ChangeLog3
-rw-r--r--misc/eselect-mode.el5
2 files changed, 4 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index fd75fe3..a5532ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2023-06-12 Ulrich Müller <ulm@gentoo.org>
+ * misc/eselect-mode.el (eselect-mode): Drop XEmacs compatibility
+ code.
+
* misc/eselect-mode.el (eselect, eselect-mode-fix-whitespace)
(eselect-mode-update-copyright): New custom group and variables.
(eselect-mode-copyright-regexp): New variable.
diff --git a/misc/eselect-mode.el b/misc/eselect-mode.el
index d2df858..bfcf494 100644
--- a/misc/eselect-mode.el
+++ b/misc/eselect-mode.el
@@ -143,10 +143,7 @@
;;;###autoload
(define-derived-mode eselect-mode shell-script-mode "Eselect"
"Major mode for .eselect files."
- (if (not (featurep 'xemacs))
- (add-hook 'write-contents-functions 'eselect-mode-before-save t t)
- (make-local-hook 'write-contents-hooks)
- (add-hook 'write-contents-hooks 'eselect-mode-before-save t t))
+ (add-hook 'write-contents-functions 'eselect-mode-before-save t t)
(sh-set-shell "bash")
(setq tab-width 4)
(setq indent-tabs-mode t))