all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Colascione <dancol@dancol.org>
To: Thien-Thi Nguyen <ttn@gnu.org>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Why the odd interactive form in byte-compile-file?
Date: Tue, 14 Jan 2014 20:43:57 -0800	[thread overview]
Message-ID: <52D6120D.3060808@dancol.org> (raw)
In-Reply-To: <871u09kgap.fsf@zigzag.favinet>

On 01/14/2014 08:41 PM, Thien-Thi Nguyen wrote:
> () Daniel Colascione <dancol@dancol.org>
> () Tue, 14 Jan 2014 16:00:02 -0800
>
>     > Is there some deeper reason we're not using code that looks like this?
>     >
>     > (interactive
>     >     (list (read-file-name (if current-prefix-arg
>     >                               "Byte compile and load file: "
>     >                             "Byte compile file: "))
>     >           current-prefix-arg))
>
> The current ‘interactive’ form supplies DIR and DEFAULT-FILENAME args to
> ‘read-file-name’ if the current buffer is Emacs Lisp (ish).  Those are
> available to the user via ‘M-n’.

Why is that useful?

> The form you propose doesn't do that.
>
>     Ping? I'd like to treat this issue as a bugfix and change the
>     interactive form to my proposal for 24.4.
>
> Why do you want to treat this functionality as an "issue"?

The current interactive form results in filenames without paths being 
left in file-name-history when accepting the default filename with RET.



  reply	other threads:[~2014-01-15  4:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-13  4:17 Why the odd interactive form in byte-compile-file? Daniel Colascione
2014-01-15  0:00 ` Daniel Colascione
2014-01-15  4:41   ` Thien-Thi Nguyen
2014-01-15  4:43     ` Daniel Colascione [this message]
2014-01-15 14:46       ` Stefan Monnier
2014-01-15 19:10         ` Daniel Colascione
2014-01-15 23:47           ` Stefan Monnier
2014-01-15 23:49             ` Daniel Colascione

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=52D6120D.3060808@dancol.org \
    --to=dancol@dancol.org \
    --cc=emacs-devel@gnu.org \
    --cc=ttn@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 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.