help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Listing markers in buffer


From: Pascal J. Bourguignon
Subject: Re: Listing markers in buffer
Date: Thu, 02 Jun 2016 15:20:48 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

"ian.tegebo" <address@hidden> writes:

> I see that `buffer-has-markers-at` will at least tell if there are
> markers pointing to a position, but not only has it been marked
> obsolete since 24.3, it doesn't provide one a means to actually get a
> marker object.
>
> Looking at the C source, I can see that buffer to buffer_text structs
> point to a singly linked list of Lisp_marker structs, but I can't find
> any Elisp functions to access them. Also, there's a related thread
> from 1999:
>
> https://groups.google.com/forum/#!topic/gnu.emacs.help/vNG9y5qCaxc/discussion

Markers belong to their owners, and it would be very dangerous if you
could get them and set or reset them behind the back of their owners.

That said, you can always patch GNU emacs C sources to provide a lisp
access to them.

-- 
__Pascal Bourguignon__                 http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk


reply via email to

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