unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19202: Suggestions for mml-attach-file
       [not found] <87lhmxawy6.fsf@vsl28t2g.ww011>
@ 2017-01-25 20:53 ` Lars Ingebrigtsen
  2017-01-26  5:03   ` H. Dieter Wilhelm
  2017-01-26 14:08   ` Rasmus
  0 siblings, 2 replies; 11+ messages in thread
From: Lars Ingebrigtsen @ 2017-01-25 20:53 UTC (permalink / raw)
  To: H. Dieter Wilhelm; +Cc: 19202

Sorry for the late response; the bug report has been sitting in a part
of the bug tracker that nobody has looked at due to a misunderstanding.

dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes:

> would you mind to enhance the mml-attach-file command so that it doesn't
> ask interactively for Type, Description and Disposition?  I'm mostly
> happy with your defaults for them and it is becoming annoying to type,
> especially for multiple attachments, RET RET RET all the time.

Yes, I agree.  In almost all the cases it guesses correctly, and if
there's anything I want to change (say "inline" to "attachment"), then I
can just edit the MML tags inserted.  That requires some expert
knowledge, though, so I'm not quite sure that everybody would be happy
with such a change...

> What do you think of an optional prefix argument of C-c C-a for
> triggering the queries?  Or making two distinct commands: C-c C-a and
> C-c RET f where the latter is querying by default and the former not?

Hm...  Or perhaps `C-u C-c C-a' would avoid all the prompts?  That would
be backwards-compatible...

> It might also be helpful if the disposition could be guessed somehow.
> For example for well know image file suffixes as inline MIME.

I think it already guesses the disposition?

(mml-content-disposition "image/png")
=> "attachment"

But it defaults images to attachment.  I'm not sure...  do people
usually want images to be inline or attachments?  I'm not attached (heh
heh) to the current defaults...

Does anybody have opinions here?

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





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

* bug#19202: Suggestions for mml-attach-file
  2017-01-25 20:53 ` bug#19202: Suggestions for mml-attach-file Lars Ingebrigtsen
@ 2017-01-26  5:03   ` H. Dieter Wilhelm
  2017-01-26 17:19     ` Lars Ingebrigtsen
  2017-01-26 17:22     ` Lars Ingebrigtsen
  2017-01-26 14:08   ` Rasmus
  1 sibling, 2 replies; 11+ messages in thread
From: H. Dieter Wilhelm @ 2017-01-26  5:03 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 19202

[-- Attachment #1: Type: text/plain, Size: 2001 bytes --]


On 25 January 2017 21:53:07 CET, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes:
>
>> would you mind to enhance the mml-attach-file command so that it
>doesn't
>> ask interactively for Type, Description and Disposition?  I'm mostly
>> happy with your defaults for them and it is becoming annoying to
>type,
>> especially for multiple attachments, RET RET RET all the time.
>
>Yes, I agree.  In almost all the cases it guesses correctly, and if
>there's anything I want to change (say "inline" to "attachment"), then
>I
>can just edit the MML tags inserted.  That requires some expert
>knowledge, though, so I'm not quite sure that everybody would be happy
>with such a change...

Ok

>> What do you think of an optional prefix argument of C-c C-a for
>> triggering the queries?  Or making two distinct commands: C-c C-a and
>> C-c RET f where the latter is querying by default and the former not?
>
>Hm...  Or perhaps `C-u C-c C-a' would avoid all the prompts?  That
>would
>be backwards-compatible...

Nice

>> It might also be helpful if the disposition could be guessed somehow.
>> For example for well know image file suffixes as inline MIME.
>
>I think it already guesses the disposition?
>
>(mml-content-disposition "image/png")
>=> "attachment"

I see,  thanks

>But it defaults images to attachment.  I'm not sure...  do people
>usually want images to be inline or attachments?  I'm not attached (heh
>heh) to the current defaults...
>
>Does anybody have opinions here?

I'd prefer inline images. Because one can't put multiple images into the message with above commands. So it seems more natural to scatter them between text.

And when we are at it. The only way I know to attach multiple documents in Gnus is with dired. It would be nice if one could trigger such a functionality within Gnus...
--
Thanks

  Dieter

Sent from my Android device with K-9 Mail. Please excuse my brevity.

[-- Attachment #2: Type: text/html, Size: 2431 bytes --]

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

* bug#19202: Suggestions for mml-attach-file
  2017-01-25 20:53 ` bug#19202: Suggestions for mml-attach-file Lars Ingebrigtsen
  2017-01-26  5:03   ` H. Dieter Wilhelm
@ 2017-01-26 14:08   ` Rasmus
  2017-01-26 14:12     ` Lars Ingebrigtsen
  1 sibling, 1 reply; 11+ messages in thread
From: Rasmus @ 2017-01-26 14:08 UTC (permalink / raw)
  To: 19202

Hi,

Lars Ingebrigtsen <larsi@gnus.org> writes:

> But it defaults images to attachment.  I'm not sure...  do people
> usually want images to be inline or attachments?  I'm not attached (heh
> heh) to the current defaults...

I think outlook webmail truncates text messages with inlined pictures
properly.  This was at least the case a few years ago.  I don't know if
this is expected behavior or a bug in outlook webmail.

I'd guess images should be attached if it's a text mail and displayed if
it's an html message (to the extend these are supported by message.el).

Thanks,
Rasmus

-- 
However beautiful the theory, one should occasionally look at the evidence






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

* bug#19202: Suggestions for mml-attach-file
  2017-01-26 14:08   ` Rasmus
@ 2017-01-26 14:12     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 11+ messages in thread
From: Lars Ingebrigtsen @ 2017-01-26 14:12 UTC (permalink / raw)
  To: Rasmus; +Cc: 19202

Rasmus <rasmus@gmx.us> writes:

> I'd guess images should be attached if it's a text mail and displayed if
> it's an html message (to the extend these are supported by message.el).

Yeah, my impression is that (most) other mail user agents have pretty
pitiful support for inlined images in text messages.

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





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

* bug#19202: Suggestions for mml-attach-file
  2017-01-26  5:03   ` H. Dieter Wilhelm
@ 2017-01-26 17:19     ` Lars Ingebrigtsen
  2017-01-26 17:22     ` Lars Ingebrigtsen
  1 sibling, 0 replies; 11+ messages in thread
From: Lars Ingebrigtsen @ 2017-01-26 17:19 UTC (permalink / raw)
  To: H. Dieter Wilhelm; +Cc: 19202

"H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de> writes:

>>Hm... Or perhaps `C-u C-c C-a' would avoid all the prompts? That
>>would
>>be backwards-compatible...
>
> Nice

I've now done this on the trunk.

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





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

* bug#19202: Suggestions for mml-attach-file
  2017-01-26  5:03   ` H. Dieter Wilhelm
  2017-01-26 17:19     ` Lars Ingebrigtsen
@ 2017-01-26 17:22     ` Lars Ingebrigtsen
  2017-01-26 20:37       ` Marcin Borkowski
  1 sibling, 1 reply; 11+ messages in thread
From: Lars Ingebrigtsen @ 2017-01-26 17:22 UTC (permalink / raw)
  To: H. Dieter Wilhelm; +Cc: 19202

"H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de> writes:

> And when we are at it. The only way I know to attach multiple documents in
> Gnus is with dired. It would be nice if one could trigger such a functionality
> within Gnus...

Emacs doesn't really have a multi-file input widget.  Ideally there
would be a command like "include some files here", and then you'd be
presented with a file browser where you could mark all the files to be
included, and bam.

But I don't think anybody has created something like that yet, which is
kinda surprising?  Feel free to open a new wishlist bug report that
Emacs should have...  something like that.

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





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

* bug#19202: Suggestions for mml-attach-file
  2017-01-26 17:22     ` Lars Ingebrigtsen
@ 2017-01-26 20:37       ` Marcin Borkowski
  2017-01-26 20:40         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 11+ messages in thread
From: Marcin Borkowski @ 2017-01-26 20:37 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: H. Dieter Wilhelm, 19202


On 2017-01-26, at 18:22, Lars Ingebrigtsen <larsi@gnus.org> wrote:

> "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de> writes:
>
>> And when we are at it. The only way I know to attach multiple documents in
>> Gnus is with dired. It would be nice if one could trigger such a functionality
>> within Gnus...
>
> Emacs doesn't really have a multi-file input widget.  Ideally there
> would be a command like "include some files here", and then you'd be
> presented with a file browser where you could mark all the files to be
> included, and bam.
>
> But I don't think anybody has created something like that yet, which is
> kinda surprising?  Feel free to open a new wishlist bug report that
> Emacs should have...  something like that.

I'm not sure why create something like this when Dired is available.
I would guess, however, that such a feature is already available in
Icicles and probably in Ivy, too.

Best,

--
Marcin Borkowski





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

* bug#19202: Suggestions for mml-attach-file
  2017-01-26 20:37       ` Marcin Borkowski
@ 2017-01-26 20:40         ` Lars Ingebrigtsen
  2017-01-26 21:26           ` Noam Postavsky
  0 siblings, 1 reply; 11+ messages in thread
From: Lars Ingebrigtsen @ 2017-01-26 20:40 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: H. Dieter Wilhelm, 19202

Marcin Borkowski <mbork@mbork.pl> writes:

> I'm not sure why create something like this when Dired is available.

But it's not very ... modal.  You want to be able to say

(mapcar 'mml-insert-file (question-the-user-for-files ...))

or something.

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





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

* bug#19202: Suggestions for mml-attach-file
  2017-01-26 20:40         ` Lars Ingebrigtsen
@ 2017-01-26 21:26           ` Noam Postavsky
  2017-01-26 21:30             ` Lars Ingebrigtsen
  0 siblings, 1 reply; 11+ messages in thread
From: Noam Postavsky @ 2017-01-26 21:26 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: H. Dieter Wilhelm, 19202, Marcin Borkowski

On Thu, Jan 26, 2017 at 3:40 PM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> Marcin Borkowski <mbork@mbork.pl> writes:
>
>> I'm not sure why create something like this when Dired is available.
>
> But it's not very ... modal.  You want to be able to say
>
> (mapcar 'mml-insert-file (question-the-user-for-files ...))
>
> or something.
>

Perhaps completing-read-multiple? Not sure how easy it is to make it
read file names specifically, though.





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

* bug#19202: Suggestions for mml-attach-file
  2017-01-26 21:26           ` Noam Postavsky
@ 2017-01-26 21:30             ` Lars Ingebrigtsen
  2017-01-26 21:44               ` Noam Postavsky
  0 siblings, 1 reply; 11+ messages in thread
From: Lars Ingebrigtsen @ 2017-01-26 21:30 UTC (permalink / raw)
  To: Noam Postavsky; +Cc: H. Dieter Wilhelm, 19202, Marcin Borkowski

Noam Postavsky <npostavs@users.sourceforge.net> writes:

> Perhaps completing-read-multiple? Not sure how easy it is to make it
> read file names specifically, though.

You need a file browser with completion and stuff...  Perhaps dired run
recursively somehow?

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





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

* bug#19202: Suggestions for mml-attach-file
  2017-01-26 21:30             ` Lars Ingebrigtsen
@ 2017-01-26 21:44               ` Noam Postavsky
  0 siblings, 0 replies; 11+ messages in thread
From: Noam Postavsky @ 2017-01-26 21:44 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: H. Dieter Wilhelm, 19202, Marcin Borkowski

On Thu, Jan 26, 2017 at 4:30 PM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> Noam Postavsky <npostavs@users.sourceforge.net> writes:
>
>> Perhaps completing-read-multiple? Not sure how easy it is to make it
>> read file names specifically, though.

Actually, this seems to work

(completing-read-multiple "files (separate with comma): "
#'read-file-name-internal #'file-exists-p)

>
> You need a file browser with completion and stuff...

There is TAB completion, but no browser or "stuff" ;)





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

end of thread, other threads:[~2017-01-26 21:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87lhmxawy6.fsf@vsl28t2g.ww011>
2017-01-25 20:53 ` bug#19202: Suggestions for mml-attach-file Lars Ingebrigtsen
2017-01-26  5:03   ` H. Dieter Wilhelm
2017-01-26 17:19     ` Lars Ingebrigtsen
2017-01-26 17:22     ` Lars Ingebrigtsen
2017-01-26 20:37       ` Marcin Borkowski
2017-01-26 20:40         ` Lars Ingebrigtsen
2017-01-26 21:26           ` Noam Postavsky
2017-01-26 21:30             ` Lars Ingebrigtsen
2017-01-26 21:44               ` Noam Postavsky
2017-01-26 14:08   ` Rasmus
2017-01-26 14:12     ` 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).