all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [BUG] org-indent-line edge case in empty Org mode buffer [9.8-pre (release_9.7.6-107-gf21415 @ /home/jschmidt/work/org-mode/lisp/)]
@ 2024-07-16 18:00 Jens Schmidt
  2024-07-17 14:11 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Jens Schmidt @ 2024-07-16 18:00 UTC (permalink / raw)
  To: emacs-orgmode

The following sequence of commands:

  make vanilla
  M-x org-mode RET
  M-x erase-buffer RET SPC
  M-: (setq org-adapt-indentation 'headline-data)
  M-x org-indent-line RET

results in:

  Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
    org-indent-line()
    funcall-interactively(org-indent-line)
    command-execute(org-indent-line record)
    execute-extended-command(nil "org-indent-line" "org-indent-li")
    funcall-interactively(execute-extended-command nil "org-indent-line" "org-indent-li")
    command-execute(execute-extended-command)

`org-indent-line' probably should test ELEMENT on nil-ness, but I'm not
sure where exactly.

Emacs  : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0)
 of 2024-06-25, modified by Debian
Package: Org mode version 9.8-pre (release_9.7.6-107-gf21415 @ /home/jschmidt/work/org-mode/lisp/)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] org-indent-line edge case in empty Org mode buffer [9.8-pre (release_9.7.6-107-gf21415 @ /home/jschmidt/work/org-mode/lisp/)]
  2024-07-16 18:00 [BUG] org-indent-line edge case in empty Org mode buffer [9.8-pre (release_9.7.6-107-gf21415 @ /home/jschmidt/work/org-mode/lisp/)] Jens Schmidt
@ 2024-07-17 14:11 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-07-17 14:11 UTC (permalink / raw)
  To: Jens Schmidt; +Cc: emacs-orgmode

Jens Schmidt <jschmidt4gnu@vodafonemail.de> writes:

> The following sequence of commands:
>
>   make vanilla
>   M-x org-mode RET
>   M-x erase-buffer RET SPC
>   M-: (setq org-adapt-indentation 'headline-data)
>   M-x org-indent-line RET

Thanks for reporting!
Fixed, on bugfix.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=e269942a3

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
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>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-17 14:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-16 18:00 [BUG] org-indent-line edge case in empty Org mode buffer [9.8-pre (release_9.7.6-107-gf21415 @ /home/jschmidt/work/org-mode/lisp/)] Jens Schmidt
2024-07-17 14:11 ` Ihor Radchenko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.