emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] org-num doesn't insert numbering for all headlines when setting variable
@ 2024-09-05 20:17 Rodrigo Morales
  2024-09-09 18:06 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Rodrigo Morales @ 2024-09-05 20:17 UTC (permalink / raw)
  To: emacs-orgmode


Consider the following file.

#+HEADER: :tangle /tmp/a.org
#+BEGIN_SRC org
,* COMMENT a

paragraph

,* COMMENT b

paragraph

,* COMMENT c

paragraph
#+END_SRC

I started Emacs using the command shown below.

#+BEGIN_SRC sh
emacs -Q /tmp/a.org
#+END_SRC

I evaluated the following sexp using M-: (eval-expression) while being
in the buffer =a.org=.

#+BEGIN_SRC elisp
(progn
  (require 'org-num)
  (setq org-num-skip-commented t)
  (org-num-mode 1)
  (setq org-num-skip-commented nil))
#+END_SRC

I inserted an =a= character at the end of first line in the buffer.

* What happend?

The virtual numbering was shown for the first headline.

#+BEGIN_SRC org
,* 1 COMMENT aa

paragraph

,* COMMENT b

paragraph

,* COMMENT c

paragraph

#+END_SRC

* What should have happened?

The virtual numbering should have been shown for all headlines.

#+BEGIN_SRC org
,* 1 COMMENT aa

paragraph

,* 2 COMMENT b

paragraph

,* 3 COMMENT c

paragraph

#+END_SRC



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

* Re: [bug] org-num doesn't insert numbering for all headlines when setting variable
  2024-09-05 20:17 [bug] org-num doesn't insert numbering for all headlines when setting variable Rodrigo Morales
@ 2024-09-09 18:06 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-09-09 18:06 UTC (permalink / raw)
  To: Rodrigo Morales; +Cc: emacs-orgmode

Rodrigo Morales <rodrigo-mailing-lists@morales.pe> writes:

> Consider the following file.
> ...
> I evaluated the following sexp using M-: (eval-expression) while being
> in the buffer =a.org=.
>
> #+BEGIN_SRC elisp
> (progn
>   (require 'org-num)
>   (setq org-num-skip-commented t)
>   (org-num-mode 1)
>   (setq org-num-skip-commented nil))
> #+END_SRC
>
> I inserted an =a= character at the end of first line in the buffer.
>
> * What happend?
>
> The virtual numbering was shown for the first headline.

You need to restart org-num-mode for its settings to have any effect.

Not a bug.
Canceled.

-- 
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-09-09 18:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-05 20:17 [bug] org-num doesn't insert numbering for all headlines when setting variable Rodrigo Morales
2024-09-09 18:06 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).