[Top][All Lists]

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

Re: bookmark.el bug report

From: Karl Fogel
Subject: Re: bookmark.el bug report
Date: Mon, 28 Dec 2009 01:48:54 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Sun Yijiang <address@hidden> writes:
> `bookmark-bmenu-execute-deletions' is broken for quite some time.  I
> think I've found the problem.  When it calls
> `bookmark-bmenu-bookmark', the callee gets text property at
> `(line-begging-position)', which is incorrect in this context.  Below
> is the patched code of  `bookmark-bmenu-bookmark' that works for me:
> (defun bookmark-bmenu-bookmark ()
>   "Return the bookmark for this line in an interactive bookmark list buffer."
>   (when (bookmark-bmenu-check-position)
>     (let ((pos (line-beginning-position)))
>       (when (looking-back "^[^ ]")
>         (setq pos (+ 1 pos)))
>       (get-text-property pos 'bookmark-name-prop))))

Thank you -- I will take a look!


reply via email to

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