unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36572: Proposal: mm-default-filename-template
@ 2019-07-09 21:54 積丹尼 Dan Jacobson
  2019-07-10 12:20 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-07-09 21:54 UTC (permalink / raw)
  To: 36572

Don't you hate when you have to fill in the blank to an empty
Save MIME part to: ~/
prompt?

Sure one can set mm-default-directory, but what about the filename?

(Yes, one can cheat a little (setq mm-default-directory "/tmp/vvv-"))

So there should be some filename template variable, nil by default, that
will prompt to save to xyz-%d.%s e.g., xyz-001.html depending if that
file doesn't exist yet.

Even GIMP prompts with Untitled.jpg.
Even  ... prompts with ...

Let's take a look at a typical HTML mail,

! MIME-Version: 1.0
! Content-Type: text/html; charset=utf-8
! Content-Transfer-Encoding: base64

So here we can already know we can help the user put an .html at the end
of the proposed target filename.

Gnus v5.13
GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.4)
 of 2019-02-03, modified by Debian





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

* bug#36572: Proposal: mm-default-filename-template
  2019-07-09 21:54 bug#36572: Proposal: mm-default-filename-template 積丹尼 Dan Jacobson
@ 2019-07-10 12:20 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-10 12:20 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 36572

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> Even GIMP prompts with Untitled.jpg.
> Even  ... prompts with ...
>
> Let's take a look at a typical HTML mail,
>
> ! MIME-Version: 1.0
> ! Content-Type: text/html; charset=utf-8
> ! Content-Transfer-Encoding: base64
>
> So here we can already know we can help the user put an .html at the end
> of the proposed target filename.

If the MIME part doesn't have a specified file name, then I don't think
Emacs can usefully suggest anything as a default name, and it's kinda
un-emacsey.  If you've opened a buffer and activated html-mode, `C-x
C-w' doesn't suggest "Untitled.html" as a file name, but leaves that up
to the user.

Closing.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2019-07-10 12:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-09 21:54 bug#36572: Proposal: mm-default-filename-template 積丹尼 Dan Jacobson
2019-07-10 12:20 ` Lars Ingebrigtsen

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).