update packages
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
;;; org-goto.el --- Fast navigation in an Org buffer -*- lexical-binding: t; -*-
|
||||
|
||||
;; Copyright (C) 2012-2023 Free Software Foundation, Inc.
|
||||
;; Copyright (C) 2012-2025 Free Software Foundation, Inc.
|
||||
|
||||
;; Author: Carsten Dominik <carsten.dominik@gmail.com>
|
||||
;; Keywords: outlines, hypermedia, calendar, wp
|
||||
;; Keywords: outlines, hypermedia, calendar, text
|
||||
|
||||
;; This file is part of GNU Emacs.
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
;; You should have received a copy of the GNU General Public License
|
||||
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;;; Code:
|
||||
|
||||
(require 'org-macs)
|
||||
@@ -102,7 +104,11 @@ When nil, you can use these keybindings to navigate the buffer:
|
||||
mouse-drag-region universal-argument org-occur)))
|
||||
(dolist (cmd cmds)
|
||||
(substitute-key-definition cmd cmd map global-map)))
|
||||
(suppress-keymap map)
|
||||
(if org-goto-auto-isearch
|
||||
;; Suppress 0-9 interpreted as digital arguments.
|
||||
;; Make them initiate isearch instead.
|
||||
(suppress-keymap map t)
|
||||
(suppress-keymap map))
|
||||
(org-defkey map "\C-m" 'org-goto-ret)
|
||||
(org-defkey map [(return)] 'org-goto-ret)
|
||||
(org-defkey map [(left)] 'org-goto-left)
|
||||
@@ -145,7 +151,7 @@ When nil, you can use these keybindings to navigate the buffer:
|
||||
(search-backward string bound noerror))
|
||||
(when (save-match-data
|
||||
(and (save-excursion
|
||||
(beginning-of-line)
|
||||
(forward-line 0)
|
||||
(looking-at org-complex-heading-regexp))
|
||||
(or (not (match-beginning 5))
|
||||
(< (point) (match-beginning 5)))))
|
||||
@@ -172,7 +178,7 @@ When nil, you can use these keybindings to navigate the buffer:
|
||||
(interactive)
|
||||
(if (org-at-heading-p)
|
||||
(progn
|
||||
(beginning-of-line 1)
|
||||
(forward-line 0)
|
||||
(setq org-goto-selected-point (point)
|
||||
org-goto-exit-command 'left)
|
||||
(throw 'exit nil))
|
||||
@@ -211,12 +217,12 @@ position or nil."
|
||||
(help (or help org-goto-help)))
|
||||
(save-excursion
|
||||
(save-window-excursion
|
||||
(delete-other-windows)
|
||||
(and (get-buffer "*org-goto*") (kill-buffer "*org-goto*"))
|
||||
(pop-to-buffer-same-window
|
||||
(condition-case nil
|
||||
(pop-to-buffer
|
||||
(condition-case nil
|
||||
(make-indirect-buffer (current-buffer) "*org-goto*" t)
|
||||
(error (make-indirect-buffer (current-buffer) "*org-goto*" t))))
|
||||
(error (make-indirect-buffer (current-buffer) "*org-goto*" t)))
|
||||
'(org-display-buffer-full-frame))
|
||||
(let (temp-buffer-show-function temp-buffer-show-hook)
|
||||
(with-output-to-temp-buffer "*Org Help*"
|
||||
(princ (format help (if org-goto-auto-isearch
|
||||
@@ -234,8 +240,10 @@ position or nil."
|
||||
(let (org-special-ctrl-a/e) (org-beginning-of-line))
|
||||
(message "Select location and press RET")
|
||||
(use-local-map org-goto-map)
|
||||
(recursive-edit)))
|
||||
(kill-buffer "*org-goto*")
|
||||
(unwind-protect (recursive-edit)
|
||||
(when-let* ((window (get-buffer-window "*Org Help*" t)))
|
||||
(quit-window 'kill window)))))
|
||||
(when (get-buffer "*org-goto*") (kill-buffer "*org-goto*"))
|
||||
(cons org-goto-selected-point org-goto-exit-command)))
|
||||
|
||||
;;;###autoload
|
||||
|
||||
Reference in New Issue
Block a user