all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Boruch Baum <boruch_baum@gmx.com>, 19923@debbugs.gnu.org
Subject: bug#19923: 24.4: diredp-do-bookmark fails: claims "Wrong number of arguments"
Date: Sun, 22 Feb 2015 12:33:58 -0800 (PST)	[thread overview]
Message-ID: <6b84fedc-a350-4b34-924f-3da4fd0e937b@default> (raw)
In-Reply-To: <54EA1A7F.60701@gmx.com>

Boruch,

Should be OK now. Please download the latest dired+.el from
Emacs Wiki, or wait up to a day for it to be mirrored on MELPA.
http://www.emacswiki.org/emacs/download/dired%2b.el.

Thanks for the bug report.

In answer to your questions:

1. Why function `diredp-bookmark' has parameter NO-MSG-P?
   Non-nil is passed for that arg when called from `diredp-do-bookmark'
   and `diredp-do-bookmark-recursive', which create multiple bookmarks.
   This is to prevent umpteen progress messages.

2. Why the funky error message?
   Dunno why the file name was shown as `<filename>', unless somehow
   `dired-get-file-for-visit' returned that.  The rest of the error
   message is from `error-message-string', from the error that was
   raised.  Why that looks like byte-code, I don't know.  That part
   looks like an Emacs bug, to me.  And the error is raised by the
   vanilla `bookmark-store' code in bookmark.el.

3. Why doesn't `diredp-do-bookmark' prompt the user for a bookmark,
   and just assumes that the user wants the bookmark name to be the
   filename?
   That's the feature. ;-) `diredp-do-bookmark' etc. are really aimed
   at quickly creating multiple bookmarks without naming them, in which
   case you (I, at least)) would not want to have to provide a bookmark
   name for each file.

   In addition, these commands are most useful in conjunction with
   library Bookmark+, in which case the aim is precisely to have
   (so-called "autofile") bookmarks whose names are the (non-directory)
   file names, so they can be manipulated using file commands etc.

   It might be possible to have these commands prompt for the bookmark
   name in the case where they act on only one bookmark, but I'm not
   in favor of that either; sorry.  You can easily write a modified
   version of `diredp-bookmark' that does that, for your own use.

4. Why the comment about keeping part of the code in sync with the
   code for `bmkp-make-record-for-target-file', and where is that
   function?
   This is a note to myself, so that if I improve one of these
   functions later I will remember to consider improving the other
   one similarly.  Function `bmkp-make-record-for-target-file' is in
   library Bookmark+:  http://www.emacswiki.org/emacs/BookmarkPlus

HTH.





      parent reply	other threads:[~2015-02-22 20:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-22 18:05 bug#19923: 24.4: diredp-do-bookmark fails: claims "Wrong number of arguments" Boruch Baum
2015-02-22 19:29 ` Drew Adams
2015-02-22 20:33 ` Drew Adams [this message]

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=6b84fedc-a350-4b34-924f-3da4fd0e937b@default \
    --to=drew.adams@oracle.com \
    --cc=19923@debbugs.gnu.org \
    --cc=boruch_baum@gmx.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.