unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: cvs-mode-diff on marked files
Date: Fri, 09 Dec 2005 11:59:04 +0200	[thread overview]
Message-ID: <87r78muaqv.fsf@jurta.org> (raw)
In-Reply-To: <jwv3bl3h6x2.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 08 Dec 2005 11:51:17 -0500")

> With the prefix T you can get what you want: T =
> As for why, it's mostly historical (that's how it was originally in PCL-CVS
> when I took over maintenance and it may have been originally due to
> limitations of early CVS).  I actually like it because I often select
> files to commit and then do diff one file at a time (either to fill the
> ChangeLog or to decide whether to add the file to set of selected files for
> commit).

Thanks, now I see.  The same problem exists in Dired where `!' always
operates on marked files.  I use the special command that operates on
the file at point.

(defun my-dired-do-shell-command-on-current-file (&optional arg)
  "Run a shell command on the current file instead of marked files."
  (interactive)
  (let ((dired-marker-char ?M))         ; ?M is unused marker char
    (call-interactively 'dired-do-shell-command)))
(define-key dired-mode-map "%!" 'my-dired-do-shell-command-on-current-file)
(define-key dired-mode-map [(control meta ?!)] 'my-dired-do-shell-command-on-current-file)

-- 
Juri Linkov
http://www.jurta.org/emacs/

  reply	other threads:[~2005-12-09  9:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-08  7:47 cvs-mode-diff on marked files Juri Linkov
2005-12-08 16:51 ` Stefan Monnier
2005-12-09  9:59   ` Juri Linkov [this message]
2005-12-09 14:12     ` Andreas Schwab
2005-12-09 23:55       ` Juri Linkov
2005-12-10 13:57         ` Stefan Monnier
2005-12-12  7:45           ` Juri Linkov
2005-12-14  9:18             ` Lars Hansen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r78muaqv.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).