emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] org-element-at-point returns wrong element
@ 2021-11-03 20:59 Sébastien Miquel
  2021-11-04 15:06 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Sébastien Miquel @ 2021-11-03 20:59 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

With point at the bol of the empty line after the keyword and before
the heading at the end of this mail, =org-element-at-point= returns
the headline element. It used to (a month ago, before all the caching)
return the keyword.

This breaks =org-element-context= which errors out when called from
the same point.

Regards,

#+LATEX_CLASS: my-class

* Head1

* Head2

-- 
Sébastien Miquel



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

* Re: [BUG] org-element-at-point returns wrong element
  2021-11-03 20:59 [BUG] org-element-at-point returns wrong element Sébastien Miquel
@ 2021-11-04 15:06 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2021-11-04 15:06 UTC (permalink / raw)
  To: sebastien.miquel; +Cc: emacs-orgmode

Sébastien Miquel <sebastien.miquel@posteo.eu> writes:

> Hi,
>
> With point at the bol of the empty line after the keyword and before
> the heading at the end of this mail, =org-element-at-point= returns
> the headline element. It used to (a month ago, before all the caching)
> return the keyword.

Thanks for reporting!

Fixed on latest main.

Best,
Ihor


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

end of thread, other threads:[~2021-11-04 15:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-03 20:59 [BUG] org-element-at-point returns wrong element Sébastien Miquel
2021-11-04 15: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).