* bug#3653: 23.1.50; Gnus/Ido: Saving message's attachment adds filename twice when user hits C-x C-f
@ 2009-06-22 22:12 Teemu Likonen
2011-01-24 2:28 ` Lars Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Teemu Likonen @ 2009-06-22 22:12 UTC (permalink / raw)
To: emacs-pretest-bug
[-- Attachment #1: Type: text/plain, Size: 1539 bytes --]
In Gnus there's a small bug in saving attached files while ido-mode and
ido-everywhere are active.
When saving an attachment Gnus prompts for a filename, and because
ido-everywhere is turned on ido is also active in the file-saving
prompt. In ido prompt there's command C-x C-f for turning ido off from
that prompt; it falls to the Emacs's default filename prompt. The
problem is that the filename appears now twice in the prompt, like
"~/filename.txtfilename.txt".
Here's the same thing explained in simple steps:
1. Start Emacs and turn on ido-mode and ido-everywhere:
C-u M-x ido-mode RET
C-u M-x ido-everywhere RET
2. Start Gnus and open a message which has an attachment. There's a
simple text file attached to this bug report message so you can use
this message.
3. When the message is visible move the point the the attachment line
[2. text/plain; test-attachment.txt]...
and press "o" (gnus-mime-save-part). Ido-mode's completion-capable
file-saving prompt should be now active.
4. Press immediately C-x C-f to go back to the normal save prompt.
5. You should see path and filename like this in the prompt:
~/test-attachment.txttest-attachment.txt
Obviously the expected result would be
~/test-attachment.txt
---------------
In GNU Emacs 23.1.50.5 (i686-pc-linux-gnu, GTK+ Version 2.12.12)
of 2009-06-23 on mithlond
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure '--prefix=/home/dtw/local''
[-- Attachment #2: test-attachment.txt --]
[-- Type: text/plain, Size: 32 bytes --]
Incredibly useful content here.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#3653: 23.1.50; Gnus/Ido: Saving message's attachment adds filename twice when user hits C-x C-f
2009-06-22 22:12 bug#3653: 23.1.50; Gnus/Ido: Saving message's attachment adds filename twice when user hits C-x C-f Teemu Likonen
@ 2011-01-24 2:28 ` Lars Ingebrigtsen
[not found] ` <87bp36n7bn.fsf@fh-trier.de>
2016-06-16 4:12 ` Andrew Hyatt
0 siblings, 2 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2011-01-24 2:28 UTC (permalink / raw)
To: Teemu Likonen; +Cc: 3653
Teemu Likonen <tlikonen@iki.fi> writes:
> 3. When the message is visible move the point the the attachment line
>
> [2. text/plain; test-attachment.txt]...
>
> and press "o" (gnus-mime-save-part). Ido-mode's completion-capable
> file-saving prompt should be now active.
>
> 4. Press immediately C-x C-f to go back to the normal save prompt.
>
> 5. You should see path and filename like this in the prompt:
>
> ~/test-attachment.txttest-attachment.txt
No, I get an error saying:
read-file-name: Command attempted to use minibuffer while in minibuffer
So I'm unable to reproduce this bug.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#3653: 23.1.50; Gnus/Ido: Saving message's attachment adds filename twice when user hits C-x C-f
[not found] ` <87bp36n7bn.fsf@fh-trier.de>
@ 2011-01-24 7:10 ` Lars Ingebrigtsen
0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2011-01-24 7:10 UTC (permalink / raw)
To: Andreas Politz; +Cc: 3653
Andreas Politz <politza@fh-trier.de> writes:
> This is not a Gnus related bug. Anyway here is how you can
> reproduce it.
>
> (ido-mode 1)
> (ido-everywhere 1)
> (read-file-name "> " "/tmp/" nil nil "foo.el")
> -> C-x C-f
>
> And a possible workaround.
>
> (add-hook 'ido-before-fallback-functions
> (lambda (fn)
> (and (eq fn 'read-file-name)
> (> (length ido-text) 0)
> (boundp 'initial)
> (setq initial nil))))
Ok, I've now reassigned this bug back to Emacs.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#3653: 23.1.50; Gnus/Ido: Saving message's attachment adds filename twice when user hits C-x C-f
2011-01-24 2:28 ` Lars Ingebrigtsen
[not found] ` <87bp36n7bn.fsf@fh-trier.de>
@ 2016-06-16 4:12 ` Andrew Hyatt
2016-06-16 5:06 ` Teemu Likonen
1 sibling, 1 reply; 5+ messages in thread
From: Andrew Hyatt @ 2016-06-16 4:12 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: Teemu Likonen, 3653
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Teemu Likonen <tlikonen@iki.fi> writes:
>
>> 3. When the message is visible move the point the the attachment line
>>
>> [2. text/plain; test-attachment.txt]...
>>
>> and press "o" (gnus-mime-save-part). Ido-mode's completion-capable
>> file-saving prompt should be now active.
>>
>> 4. Press immediately C-x C-f to go back to the normal save prompt.
>>
>> 5. You should see path and filename like this in the prompt:
>>
>> ~/test-attachment.txttest-attachment.txt
>
> No, I get an error saying:
>
> read-file-name: Command attempted to use minibuffer while in minibuffer
>
> So I'm unable to reproduce this bug.
I also can't reproduce this (on Emacs 25 and Gnus . I don't get any
error, but instead when I press C-x C-f it tells me "Save MIME part to
(default test_attachment.txt): ~/".
Seeing as how two of us have tried to reproduce this, I'm going to close
this out as unreproducible.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#3653: 23.1.50; Gnus/Ido: Saving message's attachment adds filename twice when user hits C-x C-f
2016-06-16 4:12 ` Andrew Hyatt
@ 2016-06-16 5:06 ` Teemu Likonen
0 siblings, 0 replies; 5+ messages in thread
From: Teemu Likonen @ 2016-06-16 5:06 UTC (permalink / raw)
To: Andrew Hyatt; +Cc: Lars Ingebrigtsen, 3653
[-- Attachment #1: Type: text/plain, Size: 401 bytes --]
Andrew Hyatt [2016-06-16 00:12:59-04] wrote:
> I also can't reproduce this (on Emacs 25 and Gnus . I don't get any
> error, but instead when I press C-x C-f it tells me "Save MIME part to
> (default test_attachment.txt): ~/".
>
> Seeing as how two of us have tried to reproduce this, I'm going to close
> this out as unreproducible.
Yes, this can be closed. The bug report was relevant 7 years ago.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-06-16 5:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-22 22:12 bug#3653: 23.1.50; Gnus/Ido: Saving message's attachment adds filename twice when user hits C-x C-f Teemu Likonen
2011-01-24 2:28 ` Lars Ingebrigtsen
[not found] ` <87bp36n7bn.fsf@fh-trier.de>
2011-01-24 7:10 ` Lars Ingebrigtsen
2016-06-16 4:12 ` Andrew Hyatt
2016-06-16 5:06 ` Teemu Likonen
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.