[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Remove Emacs<24.4 compatibility code
From: |
Morgan Smith |
Subject: |
[PATCH] Remove Emacs<24.4 compatibility code |
Date: |
Tue, 10 Dec 2024 19:43:06 -0500 |
* lisp/org-goto.el: Don't conditionally define keys based on if
`isearch-other-control-char' is bound.
Org mode only supports Emacs 27 and later.
---
lisp/org-goto.el | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/lisp/org-goto.el b/lisp/org-goto.el
index f75cc9ed8..aa2a9328a 100644
--- a/lisp/org-goto.el
+++ b/lisp/org-goto.el
@@ -134,14 +134,9 @@ When nil, you can use these keybindings to navigate the
buffer:
(org-defkey map "\C-c\C-u" 'outline-up-heading)
map)))
-;; `isearch-other-control-char' was removed in Emacs 24.4.
-(if (fboundp 'isearch-other-control-char)
- (progn
- (define-key org-goto-local-auto-isearch-map "\C-i"
'isearch-other-control-char)
- (define-key org-goto-local-auto-isearch-map "\C-m"
'isearch-other-control-char))
- (define-key org-goto-local-auto-isearch-map "\C-i" nil)
- (define-key org-goto-local-auto-isearch-map "\C-m" nil)
- (define-key org-goto-local-auto-isearch-map [return] nil))
+(define-key org-goto-local-auto-isearch-map "\C-i" nil)
+(define-key org-goto-local-auto-isearch-map "\C-m" nil)
+(define-key org-goto-local-auto-isearch-map [return] nil)
(defun org-goto--local-search-headings (string bound noerror)
"Search and make sure that any matches are in headlines."
--
2.46.0
- [PATCH] Remove Emacs<24.4 compatibility code,
Morgan Smith <=