From: Karl Fogel <kfogel@red-bean.com>
To: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: bookmark.el bug report
Date: Sat, 02 Jan 2010 14:17:46 -0500 [thread overview]
Message-ID: <87ws005nad.fsf@red-bean.com> (raw)
In-Reply-To: <87ws00sz0z.fsf@tux.homenetwork> (Thierry Volpiatto's message of "Sat, 02 Jan 2010 09:15:40 +0100")
Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>> I can't reproduce this. Can you please try with the latest bookmark.el
>> and let me know an exact reproduction recipe, if you can reproduce?
>
>It is working, but still fragile if you don't put properties on bookmark
>when rebuilding in *-hide-filenames.
I've fixed it to work the way you recommend, which is more robust than
what I was doing before. Thanks (there was a boundary error in my head
that led me to believe the old way was robust too, but then I remembered
about annotation marks appearing in the second column).
>,----[ bookmark-bmenu-hide-filenames ]
>| (while bookmark-bmenu-hidden-bookmarks
>| (move-to-column column t)
>| (bookmark-kill-line)
>| (let ((name (pop bookmark-bmenu-hidden-bookmarks))
>| (start (point)))
>| (insert name)
>| (put-text-property start (point) 'bookmark-name-prop name)
>| (if (and (display-color-p) (display-mouse-p))
>| (add-text-properties
>| start (point)
>`----
>
>Also, in the same function,now you have a new variable, there is no need
>to set column around bookmark title, just set it to this new variable.
I've gotten rid of the column variable -- you're right, it's no longer
necessary -- and am adding the text property now.
I think you might have an older version of bookmark.el; are you working
with the latest one from the Bazaar master branch? If not, please do.
If you can't get it the usual way, then see [1] for another way. Also,
it would be great if you can send suggested changes in 'patch' form
(i.e., using 'diff -u'). But I can read it the above way too.
>,----[ bookmark-bmenu-hide-filenames ]
>| (let ((inhibit-read-only t)
>| (column bookmark-bmenu-marks-width))
>`----
>
>Why `bookmark-bmenu-marks-width' is set to 1 and not 2?
See above about boundary error. Fixed now :-).
Thanks!
-Karl
[1] http://bazaar.launchpad.net/~vcs-imports/emacs/trunk/annotate/head%3A/lisp/bookmark.el
next prev parent reply other threads:[~2010-01-02 19:17 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-28 6:19 bookmark.el bug report Sun Yijiang
2009-12-28 6:48 ` Karl Fogel
2009-12-28 7:41 ` Thierry Volpiatto
2009-12-28 15:58 ` Drew Adams
2009-12-28 21:12 ` Karl Fogel
2009-12-29 18:22 ` Stefan Monnier
2009-12-30 13:37 ` Thierry Volpiatto
2009-12-30 15:28 ` Stefan Monnier
2009-12-30 15:57 ` Drew Adams
2009-12-30 16:26 ` Drew Adams
2009-12-30 17:43 ` Thierry Volpiatto
2009-12-30 18:32 ` Stefan Monnier
2010-01-02 5:05 ` Karl Fogel
2010-01-02 5:15 ` Karl Fogel
2010-01-02 7:03 ` Thierry Volpiatto
2010-01-02 7:26 ` Karl Fogel
2010-01-02 8:15 ` Thierry Volpiatto
2010-01-02 19:17 ` Karl Fogel [this message]
2010-01-02 7:51 ` Drew Adams
2010-01-02 8:16 ` Karl Fogel
2010-01-02 8:42 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ws005nad.fsf@red-bean.com \
--to=kfogel@red-bean.com \
--cc=emacs-devel@gnu.org \
--cc=thierry.volpiatto@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.