unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Adam Connor <adamc55@gmail.com>
Cc: 20481@debbugs.gnu.org
Subject: bug#20481: 24.5; Newlines in message-box output don't work on Windows
Date: Fri, 01 May 2015 10:19:05 +0300	[thread overview]
Message-ID: <83ioccsr2u.fsf@gnu.org> (raw)
In-Reply-To: <CAC_vAoFYY7d7Ro3QPsgkQHzDzytPxEvg2Yqy08symS9-jPDbTw@mail.gmail.com>

> From: Adam Connor <adamc55@gmail.com>
> Date: Thu, 30 Apr 2015 22:18:13 -0500
> 
> If I display a message using message-box, newlines seem to be ignored.
> For example
> (message-box "secret\nmessage")
> 
> will show the message "secretmessage". I have also tried \r\n with the
> same result.
> 
> Not a huge problem but annoying...

Emacs on Windows doesn't really support message boxes (a.k.a. "dialog
boxes"), except for simple Yes/No questions popped up by yes-or-no-p.
For other messages, such as this one, Emacs on Windows emulates dialog
boxes by menus, and in a menu an item cannot contain a newline.

In this case, we faithfully pass the original string with a newline to
the MS-Windows menu API, and I believe it is dropped by Windows when
it displays the menu.

IOW, this is a missing feature: dialog boxes are not fully supported
on MS-Windows.





  reply	other threads:[~2015-05-01  7:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-01  3:18 bug#20481: 24.5; Newlines in message-box output don't work on Windows Adam Connor
2015-05-01  7:19 ` Eli Zaretskii [this message]
     [not found]   ` <CAC_vAoGvLFr--qNihU+MDpyZPhZEysz02hCOOWVE4otubmRJWg@mail.gmail.com>
2015-05-02  6:33     ` Eli Zaretskii
2024-08-19 16:13 ` bug#20481: 24.5; , " Cecilio Pardo
2024-08-19 17:44   ` Eli Zaretskii
2024-08-19 19:20     ` Cecilio Pardo
2024-09-11 13:44     ` Cecilio Pardo
2024-09-12  2:49       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-12 13:33         ` Cecilio Pardo
2024-09-14 11:00           ` Eli Zaretskii
     [not found]             ` <28906c5b-0ff1-49a7-990b-50ad95235be2@imayhem.com>
2024-09-14 15:19               ` Eli Zaretskii
2024-09-14 12:05           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-14 12:17             ` Eli Zaretskii
2024-09-14 14:02               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-14 14:14                 ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83ioccsr2u.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=20481@debbugs.gnu.org \
    --cc=adamc55@gmail.com \
    /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 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).