emacs-devel
[Top][All Lists]
Advanced

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

bookmark.el bug report


From: Sun Yijiang
Subject: bookmark.el bug report
Date: Mon, 28 Dec 2009 14:19:16 +0800

`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))))


Sincerely,
Steve




reply via email to

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