emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add next-error support to org-lint report buffer


From: Ihor Radchenko
Subject: Re: [PATCH] Add next-error support to org-lint report buffer
Date: Sat, 28 Dec 2024 15:12:01 +0000

Malcolm Purvis <malcolm@purvis.id.au> writes:

> Apologies for the malformed patch.  Here it is as an attachment.

Thanks!

> -| {{{kbd(S)}}}                   | Sort reports by the column at point       
>   |

Looks like you deleted this line by accident.

> +*** next-error supports =org-lint= reports
> +
> +The command =next-error= can now be used to jump to the next
> +=org-lint= error.

I just tried your patch on an Org file with 2 warnings and tried to
press C-x ` repeatedly. Upon moving to the last line in *Org lint*
buffer, I got

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  aref(nil 0)
  (get-text-property 0 'org-lint-marker (aref (tabulated-list-get-entry) 0))
  org-lint--current-marker()
  (let ((mk (org-lint--current-marker))) (switch-to-buffer-other-window 
org-lint--source-buffer) (if (<= (point-min) mk (point-max)) nil (widen)) 
(goto-char mk) (org-fold-show-set-visibility 'local) (recenter))
  org-lint--jump-to-source()
  (let ((buffer (current-buffer))) (org-lint--jump-to-source) 
(switch-to-buffer-other-window buffer))
  org-lint--show-source()
  org-lint--next-error-function(1 nil)
  next-error(nil)
  funcall-interactively(next-error nil)
  command-execute(next-error)


-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]