[Top][All Lists]

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

Re: bookmark.el bug report

From: Thierry Volpiatto
Subject: Re: bookmark.el bug report
Date: Wed, 30 Dec 2009 14:37:33 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.90 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>> (condition-case nil
>>> (save-excursion
>>> (forward-line 0) (forward-char 3)
> Hardcoding 3 is ugly (I know it's done elsewhere, but it's still ugly,
> elsewhere a well).

That can be used instead:

(skip-chars-forward " \\|\*\\|>\\|D")

>>> (get-text-property (point) 'bookmarkp-bookmark-name))
>>> (error nil)))
>> Will take into account.
> Better would be to place the text property at BOL so there's no need for
> any forward-char business.
Yes, but remember you have to set properties on the bookmark name
without "*"(annotation), ">"(mark), "D"(mark for deletion).
That occur on third char and not before.

A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France

reply via email to

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