From b2e34474f5930dbe6e5449d3b017b4d7c983af3d Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Thu, 17 Aug 2023 12:50:52 +0300 Subject: [PATCH] org-lint: Allow jumping outside narrowing when jumping to source * lisp/org-lint.el (org-lint--jump-to-source): When buffer is narrowed and the location to jump is outside the narrowing, widen. --- lisp/org-lint.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org-lint.el b/lisp/org-lint.el index 0e0bbea66..d0f699421 100644 --- a/lisp/org-lint.el +++ b/lisp/org-lint.el @@ -274,6 +274,7 @@ CHECKERS is the list of checkers used." (interactive) (let ((mk (org-lint--current-marker))) (switch-to-buffer-other-window org-lint--source-buffer) + (unless (<= (point-min) mk (point-max)) (widen)) (goto-char mk) (org-fold-show-set-visibility 'local) (recenter)))