all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#8523: 24.0.50; `dired-mark-if': wrong message if unmarking or unflagging
@ 2011-04-19 19:46 Drew Adams
  2011-07-02 13:29 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2011-04-19 19:46 UTC (permalink / raw)
  To: 8523

`dired-mark-if' is used for marking, flagging (for deletion), and
unflagging.  The particular behavior depends on the value of
`dired-marker-char'.
 
The final message reflects this variation correctly, by testing
`dired-marker-char'.  But the initial message does not.  It always says
"Marking <blah blah>...".  That's strictly true, since marking with a
space char amounts to unmarking.  Still, the message could be more
user-friendly.
 
Here's a fix.  Change the code: (if ,msg "Marking %ss..." ,msg)
to this:
 
(when ,msg
  (message "%s %ss%s..."
           ,(cond ((eq ?\040 dired-marker-char) "Unmarking")
                  ((eq dired-del-marker dired-marker-char)
                   "Flagging")
                  (t "Marking"))
           ,msg
           ,(if (eq dired-del-marker dired-marker-char)
                " for deletion"
              "")))
 

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-04-18 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt --cflags
-Ic:/imagesupport/include'
 






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-02 13:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-19 19:46 bug#8523: 24.0.50; `dired-mark-if': wrong message if unmarking or unflagging Drew Adams
2011-07-02 13:29 ` Lars Magne Ingebrigtsen

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.