all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Stefan Kangas <stefan@marxist.se>, 5423@debbugs.gnu.org
Subject: bug#5423: Multiline y-or-n prompt in files.el
Date: Thu, 19 Nov 2020 10:33:28 +0100	[thread overview]
Message-ID: <87pn49n11z.fsf@gmx.net> (raw)
In-Reply-To: <jwv5z627wsx.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 19 Nov 2020 00:15:04 -0500")

On Thu, 19 Nov 2020 00:15:04 -0500 Stefan Monnier <monnier@iro.umontreal.ca> wrote:

>>> find-file-noselect has a multiline y-or-n-p prompt if the file is
>>> already visited and modified (and in a different rawness).  That only
>>> works when the minibuffer can be resized, sadly.  In my case (separate
>>> minibuffer), I only see the beginning of the prompt.
>>
>> That was 10 years ago, so just to check in: is this still an issue?
>
> I'd be surprised if it's been fixed, but I must admit that I can't
> remember how to trigger this,

I'm not sure just what you meant with "beginning of the prompt", but
what I see is only the last line of the entire prompt message:
"The file test is already visited literally,
meaning no coding system handling, format conversion, or local variables.
You have edited the buffer.  Now you have asked to visit the file normally,
but Emacs can visit a file in only one way at a time.

Do you want to save the file, and visit it normally instead? "

To reproduce:

$ touch /tmp/test
$ emacs -Q --eval "(setq resize-mini-windows nil)" /tmp/test
M-x find-file-literally RET /tmp/test RET
=> The minibuffer displays only:
Do you want to save the file, and visit it literally instead? (y or no)

By repeatedly typing `C-p' you can see the entire message line by line.
Tested on current master.  (There also seems to be another separate bug:
that with the above recipe the prompt message seems inappropriate.)

Steve Berman





  reply	other threads:[~2020-11-19  9:33 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-19 13:51 bug#5423: Multiline y-or-n prompt in files.el Stefan Monnier
2010-01-19 14:12 ` Lennart Borgman
2010-01-19 14:56   ` Helmut Eller
2010-01-19 15:17     ` Lennart Borgman
2010-01-19 15:35   ` Drew Adams
2010-01-19 19:02   ` broken mail-client [was Re: bug#5423: Multiline y-or-n prompt in files.el] Glenn Morris
2010-01-20  2:35     ` Stephen J. Turnbull
2010-01-22 21:02       ` broken mail-client Glenn Morris
2010-01-20  1:59 ` bug#5423: Multiline y-or-n prompt in files.el Juri Linkov
2010-01-20  2:52   ` Lennart Borgman
2020-11-19  2:51 ` Stefan Kangas
2020-11-19  5:15   ` Stefan Monnier
2020-11-19  9:33     ` Stephen Berman [this message]
2020-11-19 10:03       ` martin rudalics
2020-11-19 14:47       ` Eli Zaretskii
2020-11-20  8:30       ` Juri Linkov
2020-11-21 19:50         ` Juri Linkov
2020-11-21 21:23           ` Stefan Monnier

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=87pn49n11z.fsf@gmx.net \
    --to=stephen.berman@gmx.net \
    --cc=5423@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=stefan@marxist.se \
    /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.