all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jari.aalto@poboxes.com (Jari Aalto+mail.emacs)
Subject: Re: how to make dired-do-rename more friendly?
Date: Sun, 25 Jan 2004 21:17:21 +0200	[thread overview]
Message-ID: <wu7fet32.fsf@blue.sea.net> (raw)
In-Reply-To: mailman.322.1069327365.399.help-gnu-emacs@gnu.org

* Thu 2003-11-20 Harry Putnam <reader@newsguy.com> gnu.emacs.help
* <http://groups.google.com/groups?oi=djq&as_umsgid=%3Cmailman.322.1069327365.399.help-gnu-emacs@gnu.org>
| "leo" <halloleo@noospaam.myrealbox.com> writes:
| 
| I picked this code up in this group long ago... no longer remember
| its author.  But it does what you describe.  I use it all the time.
| 
| WARNING: Being one of the lisp impaired... I'm not sure what all this
| does  USE AT YOUR OWN RISK.
|  
|   (defadvice dired-mark-read-file-name (around tiad act)
|     "Instead of asking directory, offer full filename for editing.
|   This advice is enabled only upon request."
|     (if (and dir (string-match "/" dir))
|         (setq dir (dired-get-filename)))
|     ad-do-it)
|                  
|   (defadvice dired-do-rename  (around joc-tiad-dired-rename act)
|     "Offer editing the current filename.
|   Without this advice you don't get the old filename for editing.
|   Activates advice 'dired-mark-read-file-name 'my 'around during call."
|     (let* ((ADVICE 'dired-mark-read-file-name))
|       (ad-enable-advice ADVICE 'around 'tiad)
|       (ad-activate ADVICE)
|       ad-do-it
|       (ad-disable-advice ADVICE 'around 'tiad)
|       (ad-activate ADVICE)))

:-) This code is from advice collection library (tinyadvice.el)
For more information http://tiny-tools.sourceforge.net/ 


Jari

      parent reply	other threads:[~2004-01-25 19:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-20  2:52 how to make dired-do-rename more friendly? leo
2003-11-20  6:22 ` Eli Zaretskii
2003-11-20  6:53 ` Dryice Liu
2003-11-20 10:20 ` Harry Putnam
2003-11-20 18:06   ` Harry Putnam
     [not found]   ` <mailman.353.1069356131.399.help-gnu-emacs@gnu.org>
2003-11-21  5:05     ` leo
2003-11-20 18:39 ` Kevin Rodgers
     [not found] ` <mailman.322.1069327365.399.help-gnu-emacs@gnu.org>
2004-01-25 19:17   ` Jari Aalto+mail.emacs [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=wu7fet32.fsf@blue.sea.net \
    --to=jari.aalto@poboxes.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.