From cc8b6101f4479a80a6af7f9d80c6f9d774a85f40 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Fri, 13 May 2022 21:41:16 +0200 Subject: [PATCH] Remove some XEmacs compat code from org-mode * lisp/org/ol-eww.el (org-eww-copy-for-org-mode): * lisp/org/ol-w3m.el (org-w3m-copy-for-org-mode): * lisp/org/org-refile.el (org-refile): * lisp/org/org.el (org-change-tag-in-region): Remove XEmacs compat code. --- lisp/org/ol-eww.el | 2 +- lisp/org/ol-w3m.el | 2 +- lisp/org/org-refile.el | 2 +- lisp/org/org.el | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/org/ol-eww.el b/lisp/org/ol-eww.el index 69bf1ba62dd..d1bb5195107 100644 --- a/lisp/org/ol-eww.el +++ b/lisp/org/ol-eww.el @@ -115,7 +115,7 @@ keep the structure of the Org file." (setq transform-start (region-beginning)) (setq transform-end (region-end)) ;; Deactivate mark if current mark is activate. - (when (fboundp 'deactivate-mark) (deactivate-mark))) + (deactivate-mark)) (message "Transforming links...") (save-excursion (goto-char transform-start) diff --git a/lisp/org/ol-w3m.el b/lisp/org/ol-w3m.el index 517329889c6..80d6811a5c5 100644 --- a/lisp/org/ol-w3m.el +++ b/lisp/org/ol-w3m.el @@ -72,7 +72,7 @@ so that it can be yanked into an Org buffer with links working correctly." (setq transform-start (region-beginning)) (setq transform-end (region-end)) ;; Deactivate mark if current mark is activate. - (when (fboundp 'deactivate-mark) (deactivate-mark))) + (deactivate-mark)) (message "Transforming links...") (save-excursion (goto-char transform-start) diff --git a/lisp/org/org-refile.el b/lisp/org/org-refile.el index f76ebefe7b7..71d00a7a22b 100644 --- a/lisp/org/org-refile.el +++ b/lisp/org/org-refile.el @@ -577,7 +577,7 @@ prefix argument (`C-u C-u C-u C-c C-w')." (with-demoted-errors "Bookmark set error: %S" (bookmark-set bookmark-name)))) (move-marker org-capture-last-stored-marker (point))) - (when (fboundp 'deactivate-mark) (deactivate-mark)) + (deactivate-mark) (run-hooks 'org-after-refile-insert-hook))) (unless org-refile-keep (if regionp diff --git a/lisp/org/org.el b/lisp/org/org.el index 1fc4251a340..778f06aa64f 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el @@ -12160,7 +12160,7 @@ This works in the agenda, and also in an Org buffer." (progn (message "[s]et or [r]emove? ") (equal (read-char-exclusive) ?r)))) - (when (fboundp 'deactivate-mark) (deactivate-mark)) + (deactivate-mark) (let ((agendap (equal major-mode 'org-agenda-mode)) l1 l2 m buf pos newhead (cnt 0)) (goto-char end) -- 2.39.2