From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 01 11:45:18 2012 Received: (at submit) by debbugs.gnu.org; 1 Apr 2012 15:45:18 +0000 Received: from localhost ([127.0.0.1]:34950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEMxw-0001v9-0f for submit@debbugs.gnu.org; Sun, 01 Apr 2012 11:45:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55324) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEMxs-0001v0-Jw for submit@debbugs.gnu.org; Sun, 01 Apr 2012 11:45:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEMxe-0002s1-Go for submit@debbugs.gnu.org; Sun, 01 Apr 2012 11:45:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_HI, RECEIVED_FROM_WINDOWS_HOST autolearn=ham version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:44415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEMxe-0002rx-Cq for submit@debbugs.gnu.org; Sun, 01 Apr 2012 11:44:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEMxb-0001Eq-KQ for bug-gnu-emacs@gnu.org; Sun, 01 Apr 2012 11:44:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEMxY-0002jF-IZ for bug-gnu-emacs@gnu.org; Sun, 01 Apr 2012 11:44:55 -0400 Received: from blu0-omc1-s4.blu0.hotmail.com ([65.55.116.15]:26041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEMxY-0002fk-Dj for bug-gnu-emacs@gnu.org; Sun, 01 Apr 2012 11:44:52 -0400 Received: from BLU159-DS7 ([65.55.116.7]) by blu0-omc1-s4.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 1 Apr 2012 08:44:49 -0700 X-Originating-IP: [50.46.119.2] X-Originating-Email: [dpchiesa@hotmail.com] Message-ID: From: "Dino Chiesa" To: Subject: 23.3; x-popup-menu not behaving as documented Date: Sun, 1 Apr 2012 08:45:12 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0050_01CD0FE3.C06E2850" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3538.513 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3538.513 X-OriginalArrivalTime: 01 Apr 2012 15:44:49.0822 (UTC) FILETIME=[5F571BE0:01CD101E] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) This is a multi-part message in MIME format. ------=_NextPart_000_0050_01CD0FE3.C06E2850 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable These tests were performed on Windows.=20 As documented here http://www.gnu.org/software/emacs/manual/html_node/elisp/Simple-Menu-Item= s.html#Simple-Menu-Items if the binding on a menu item is nil, then the mnenu item is unselectable. But this elisp code:=20 (x-popup-menu t (list "TITLE" (list "PANE" =20 (list "menu item 1" nil) (list "menu item 2" nil)))) ...shows a menu in which both items are selectable.=20 This bug may be relevant to bug #11138. One of the proposed fixes for #11138 at the time of this report is to render a multi-line dialog box as a menu, with each "line" in the message displayed as an unselectable menu item. But this brief test seems to indicate that the "unselectable" menu items are not really unselectable, at least on = Windows. In that case the proposed fix would be unsatisfactory. I'd like to also raise a documentation bug, as well: there ought to be examples showing how to use x-popup-menu, on the page I cited above.=20 A few simple examples will make this method much more usable. In particular, if the result I reported here is due to incorrect usage = on my part,=20 providing examples in the documentation is the way to fix it. Even if I = am using=20 this function correctly, this example (and others) ought to be put into = the=20 documentation to illustrate the proper use of "unselectable" menu items. = Thanks. In GNU Emacs 23.3.1 (i386-mingw-nt6.1.7601) of 2011-03-10 on 3249CTO Windowing system distributor `Microsoft Corp.', version 6.1.7601 configured using `configure --with-gcc (4.5) --no-opt --cflags = -Ic:/imagesupport/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: auto-revert-mode: t recentf-mode: t yas/global-mode: t yas/minor-mode: t shell-dirtrack-mode: t global-hl-line-mode: t hl-line-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: o o f " C-p C-a SPC C-n C-n C-n C-c C-e C-p=20 C-p C-e C-n =20 b d C-d C-d C-d C-d C-d C-d C-p=20 C-p C-a SPC C-f C-c C-e C-p C-p C-a=20 SPC C-n C-n C-n C-w C-y C-y C-p C-p C-p C-k=20 C-k C-k C-k C-p C-e =20 C-b C-n C-e b b C-p C-b=20 SPC i t e m SPC d f 1 C-n =20 b i t e m SPC 2 d b C-b=20 C-b C-b C-b C-b SPC C-p C-p C-p C-a SPC =20 C-f C-c C-e C-p C-b : C-n C-a SPC C-n C-w=20 C-y C-y b b b b=20 C-p C-p C-n C-n - - s p a c e d d=20 d C-n SPC C-p C-p C-e =20 C-n C-n C-p C-b C-b C-p C-p C-p=20 C-e C-b C-n C-e C-n =20 C-n C-a C-e ) C-n SPC C-b C-c=20 C-e C-p C-n C-n C-n C-n C-k C-k C-y C-n C-y C-n C-n=20 SPC C-b C-c C-e C-n C-n C-n C-n C-e=20 C-n C-b C-b C-b 3 C-n C-n C-k C-k C-k C-k=20 C-k C-k SPC C-b C-c C-e=20 SPC C-n C-n C-n C-n C-n C-n C-n C-w C-y C-p=20 C-p C-p C-p C-p C-p C-p SPC =20 C-f C-r C-p C-p C-p C-p C-p C-p C-b C-b C-b=20 C-b C-a C-p SPC C-f =20 C-r C-u C-x TAB x r e p o r t - g n u - b=20 =20 Recent messages: Quit Mark set [4 times] Mark activated Quit Mark set [3 times] Quit Mark set Quit Mark set [2 times] Mark activated [2 times] Load-path shadows: /users/dino/elisp/refill hides c:/emacs/lisp/textmodes/refill Features: (shadow sort mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailabbrev nnheader gnus-util netrc gmm-utils mailheader canlock sha1 hex-util hashcash emacsbug newcomment dabbrev tabify cc-mode cc-fonts cc-menus cc-cmds parse-time timezone dired-aux ansi-color multi-isearch finder-inf time-stamp mail-utils url-cache url-http tls mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums time-date url-gw url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse url-vars mm-util mail-prsvr mailcap autorevert server thesaurus recentf tree-widget synonyms-autoloads package lorem cperl-mode smarter-compile js-mode-fixups jsshell-bundle jsshell flyphpcs hideshow cc-styles cc-align cc-engine cc-vars cc-defs flymake-cursor byte-opt warnings bytecomp byte-compile flymake compile flymake-fixups dired-fixups dired regexp-opt defaultcontent thingatpt csslint yasnippet dropdown-list derived easy-mmode help-mode view assoc cl cl-19 powershell shell comint ring tfs skeleton edmacro kmacro httpget hl-line advice help-fns advice-preload cus-edit easymenu cus-start cus-load wid-edit tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) ------=_NextPart_000_0050_01CD0FE3.C06E2850 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
These tests were performed on Windows.
 
As documented here
http://www.gnu.org/software/emacs/manua= l/html_node/elisp/Simple-Menu-Items.html#Simple-Menu-Items
 
if the binding on a menu item is nil, then the mnenu item is
unselectable.
 
But this elisp code:
 
    (x-popup-menu t (list "TITLE" (list
           &n= bsp;           &nb= sp;       =20 "PANE" 
           &n= bsp;           &nb= sp;       =20 (list "menu item 1" nil)
           &n= bsp;           &nb= sp;       =20 (list "menu item 2" nil))))
 
...shows a menu in which both items are selectable.
 
This bug may be relevant to bug #11138. One of the proposed fixes = for
#11138 at the time of this report is to render a multi-line dialog=20 box
as a menu, with each "line" in the message displayed as an=20 unselectable
menu item.  But this brief test seems to indicate that = the
"unselectable" menu items are not really unselectable, at least on=20 Windows.
In that case the proposed fix would be unsatisfactory.
 
I'd like to also raise a documentation bug, as well: there ought to = be
examples showing how to use x-popup-menu, on the page I cited = above.
A few simple examples will make this method much more usable.
 
In particular, if the result I reported here is due to incorrect = usage on=20 my part,
providing examples in the documentation is the way to fix it. Even = if I am=20 using
this function correctly, this example (and others) ought to be put = into the=20
documentation to illustrate the proper use of "unselectable" menu = items.=20
 
Thanks.
 
 
In GNU Emacs 23.3.1 (i386-mingw-nt6.1.7601)
of 2011-03-10 on 3249CTO
Windowing system distributor `Microsoft Corp.', version = 6.1.7601
configured using `configure --with-gcc (4.5) --no-opt --cflags=20 -Ic:/imagesupport/include'
 
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default enable-multibyte-characters: t
 
Major mode: Lisp Interaction
 
Minor modes in effect:
  auto-revert-mode: t
  recentf-mode: t
  yas/global-mode: t
  yas/minor-mode: t
  shell-dirtrack-mode: t
  global-hl-line-mode: t
  hl-line-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
 
Recent input:
o o f " C-p C-a <escape> SPC C-n C-n C-n C-c C-e C-p
C-p C-e <escape> <backspace> <backspace> C-n=20 <escape>
b <escape> d <backspace> C-d C-d C-d C-d C-d C-d C-p =
C-p C-a <escape> SPC <escape> C-f C-c C-e C-p C-p C-a =
<escape> SPC C-n C-n C-n C-w C-y C-y C-p C-p C-p C-k
C-k C-k C-k C-p C-e <backspace> <backspace> = <backspace>=20
<escape> C-b C-n C-e <escape> b <escape> b C-p = C-b
SPC i t e m SPC <escape> d f <backspace> 1 C-n = <escape>=20
b <backspace> i t e m SPC 2 <escape> d <escape> b = C-b=20
C-b C-b C-b C-b SPC C-p C-p C-p C-a <escape> SPC = <escape>=20
C-f C-c C-e C-p C-b : C-n C-a <escape> SPC C-n C-w
C-y C-y <escape> b <escape> b <escape> b = <escape> b=20
C-p C-p C-n C-n - - s p a c e <escape> d <escape> d =
<escape> d C-n <escape> SPC C-p C-p C-e = <backspace>=20
<backspace> C-n C-n C-p C-b C-b <return> C-p C-p C-p =
C-e C-b <backspace> C-n C-e <backspace> C-n = <backspace>=20
C-n C-a <tab> C-e ) C-n <escape> SPC <escape> C-b = C-c=20
C-e C-p C-n C-n C-n C-n C-k C-k C-y C-n C-y C-n C-n
<escape> SPC <escape> C-b C-c C-e C-n C-n C-n C-n C-e =
C-n C-b C-b C-b <backspace> 3 C-n C-n C-k C-k C-k C-k
C-k C-k <return> <escape> SPC <escape> C-b C-c = C-e
<escape> SPC C-n C-n C-n C-n C-n C-n C-n C-w C-y C-p
C-p C-p C-p C-p C-p C-p <tab> <escape> SPC = <escape>=20
C-f <escape> C-r C-p C-p C-p C-p C-p C-p C-b C-b C-b
C-b <return> C-a C-p <escape> SPC <escape> C-f=20 <escape>
C-r C-u C-x TAB <escape> x r e p o r t - g n u - b
<tab> <backspace> <backspace> <backspace>=20 <backspace>
<backspace> <tab> <return>
 
Recent messages:
Quit
Mark set [4 times]
Mark activated
Quit
Mark set [3 times]
Quit
Mark set
Quit
Mark set [2 times]
Mark activated [2 times]
 
Load-path shadows:
/users/dino/elisp/refill hides c:/emacs/lisp/textmodes/refill
 
Features:
(shadow sort mail-extr message ecomplete rfc822 mml mml-sec
password-cache mm-decode mm-bodies mm-encode mailabbrev = nnheader
gnus-util netrc gmm-utils mailheader canlock sha1 hex-util = hashcash
emacsbug newcomment dabbrev tabify cc-mode cc-fonts cc-menus = cc-cmds
parse-time timezone dired-aux ansi-color multi-isearch = finder-inf
time-stamp mail-utils url-cache url-http tls mail-parse rfc2231=20 rfc2047
rfc2045 qp ietf-drums time-date url-gw url-auth url url-proxy
url-privacy url-expand url-methods url-history url-cookie = url-util
url-parse url-vars mm-util mail-prsvr mailcap autorevert = server
thesaurus recentf tree-widget synonyms-autoloads package = lorem
cperl-mode smarter-compile js-mode-fixups jsshell-bundle = jsshell
flyphpcs hideshow cc-styles cc-align cc-engine cc-vars = cc-defs
flymake-cursor byte-opt warnings bytecomp byte-compile flymake=20 compile
flymake-fixups dired-fixups dired regexp-opt defaultcontent = thingatpt
csslint yasnippet dropdown-list derived easy-mmode help-mode view=20 assoc
cl cl-19 powershell shell comint ring tfs skeleton edmacro = kmacro
httpget hl-line advice help-fns advice-preload cus-edit = easymenu
cus-start cus-load wid-edit tooltip ediff-hook vc-hooks=20 lisp-float-type
mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd=20 fontset
image fringe lisp-mode register page menu-bar rfn-eshadow timer=20 select
scroll-bar mldrag mouse jit-lock font-lock syntax facemenu = font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan = thai
tai-viet lao korean japanese hebrew greek romanian slovak czech=20 european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook=20 help
simple abbrev loaddefs button minibuffer faces cus-face files
text-properties overlay md5 base64 format env code-pages mule = custom
widget hashtable-print-readable backquote make-network-process=20 multi-tty
emacs)
------=_NextPart_000_0050_01CD0FE3.C06E2850-- From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 01 12:19:55 2012 Received: (at 11148) by debbugs.gnu.org; 1 Apr 2012 16:19:55 +0000 Received: from localhost ([127.0.0.1]:34968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SENVT-0002iG-80 for submit@debbugs.gnu.org; Sun, 01 Apr 2012 12:19:55 -0400 Received: from acsinet15.oracle.com ([141.146.126.227]:45769) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SENVQ-0002i8-NJ for 11148@debbugs.gnu.org; Sun, 01 Apr 2012 12:19:53 -0400 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q31GJen7013300 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 1 Apr 2012 16:19:40 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q31GJdLX015966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 1 Apr 2012 16:19:39 GMT Received: from abhmt101.oracle.com (abhmt101.oracle.com [141.146.116.53]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q31GJduQ002342; Sun, 1 Apr 2012 11:19:39 -0500 Received: from dradamslap1 (/10.159.53.220) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 01 Apr 2012 09:19:38 -0700 From: "Drew Adams" To: "'Dino Chiesa'" , <11148@debbugs.gnu.org> References: Subject: RE: bug#11148: 23.3; x-popup-menu not behaving as documented Date: Sun, 1 Apr 2012 09:19:29 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac0QHor1i+jFKsueSoaeU+LmWESzswAAhgUw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4F78801D.000F,ss=1,re=0.000,fgs=0 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 11148 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) > (x-popup-menu > t > (list "TITLE" > (list "PANE" (list "menu item 1" nil) > (list "menu item 2" nil)))) > ...shows a menu in which both items are selectable. > > This bug may be relevant to bug #11138. One of the proposed fixes for > #11138 at the time of this report is to render a multi-line dialog box > as a menu, with each "line" in the message displayed as an unselectable > menu item. > > But this brief test seems to indicate that the "unselectable" > menu items are not really unselectable, at least on Windows. > In that case the proposed fix would be unsatisfactory. First, I don't really care how bug #11138 is fixed. My point in suggesting splitting a message at \n chars was that the bug can be fixed - even if in a rudimentary way by treating the message's separate lines as separate menu lines (since the code on MS Windows currently treats a `message-box' as a popup menu). Here is what I mean (one way), using the bug report's multiline message: (defun foo (event) (interactive "e") (let ((choice (x-popup-menu event '("Message" ("" "First line in a long-ish message.") ("" "This is line number 2 in the message.") ("" ("OK")))))) (and choice (call-interactively choice)))) (global-set-key [double-mouse-2] 'foo) (global-set-key [mouse-2] nil) Double-click mouse-2. The message's lines are indeed handled as unselectable menu items (yes, on MS Windows). Is that the best looking implementation of a message dialog box? Not IMO. But given the desire to implement a message box using `x-popup-menu', that shows at least that it can be done. Is that better than the current implementation, which jams the multiple lines of the message together? Maybe. Certainly we can hope for a better implementation. Stefan suggested using a tooltip frame, for instance. And maybe (?) at least some of the implementation could be moved from C to Lisp. > I'd like to also raise a documentation bug, as well: there ought to be > examples showing how to use x-popup-menu, on the page I cited above. > A few simple examples will make this method much more usable. Agreed, especially since there are a few different ways to use `x-popup-menu': keymap, list of keymaps, or menu of multiple panes, the last of these being radically different from the first two and unique wrt the rest of Emacs. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 01 12:28:33 2012 Received: (at 11148) by debbugs.gnu.org; 1 Apr 2012 16:28:33 +0000 Received: from localhost ([127.0.0.1]:34977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SENdn-0002uA-Ip for submit@debbugs.gnu.org; Sun, 01 Apr 2012 12:28:32 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:33210) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SENdk-0002u0-Sv for 11148@debbugs.gnu.org; Sun, 01 Apr 2012 12:28:30 -0400 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3VLMSJ5y5gz3hhVx; Sun, 1 Apr 2012 18:28:15 +0200 (CEST) Received: from linux.local (ppp-88-217-123-48.dynamic.mnet-online.de [88.217.123.48]) by mail.mnet-online.de (Postfix) with ESMTPA id 3VLMSJ1Wrwz4KK5D; Sun, 1 Apr 2012 18:28:16 +0200 (CEST) Received: by linux.local (Postfix, from userid 501) id A0BDF1E5306; Sun, 1 Apr 2012 18:28:13 +0200 (CEST) From: Andreas Schwab To: "Dino Chiesa" Subject: Re: bug#11148: 23.3; x-popup-menu not behaving as documented References: X-Yow: I'm gliding over a NUCLEAR WASTE DUMP near ATLANTA, Georgia!! Date: Sun, 01 Apr 2012 18:28:13 +0200 In-Reply-To: (Dino Chiesa's message of "Sun, 1 Apr 2012 08:45:12 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11148 Cc: 11148@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) "Dino Chiesa" writes: > if the binding on a menu item is nil, then the mnenu item is > unselectable. > > But this elisp code: > > (x-popup-menu t (list "TITLE" (list > "PANE" > (list "menu item 1" nil) > (list "menu item 2" nil)))) That menu is not a keymap, so the alternative representation is selected, where unselectable items are represented by strings, not conses. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 01 16:36:42 2012 Received: (at 11148) by debbugs.gnu.org; 1 Apr 2012 20:36:43 +0000 Received: from localhost ([127.0.0.1]:35109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SERVy-0000ZE-J0 for submit@debbugs.gnu.org; Sun, 01 Apr 2012 16:36:42 -0400 Received: from blu0-omc3-s5.blu0.hotmail.com ([65.55.116.80]:32961) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SERVv-0000Z6-Q2 for 11148@debbugs.gnu.org; Sun, 01 Apr 2012 16:36:41 -0400 Received: from BLU159-DS19 ([65.55.116.74]) by blu0-omc3-s5.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 1 Apr 2012 13:36:26 -0700 X-Originating-IP: [50.46.119.2] X-Originating-Email: [dpchiesa@hotmail.com] Message-ID: From: "Dino Chiesa" To: "Drew Adams" , <11148@debbugs.gnu.org> References: In-Reply-To: Subject: Re: bug#11148: 23.3; x-popup-menu not behaving as documented Date: Sun, 1 Apr 2012 13:36:48 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3538.513 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3538.513 X-OriginalArrivalTime: 01 Apr 2012 20:36:26.0701 (UTC) FILETIME=[1C4AF7D0:01CD1047] X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 11148 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.5 (-) K, thanks for the reply. I'll let you guys figure out what you want to do about 11138; It may be that doc changes are the way to fix 11148.\ -Dino -----Original Message----- From: Drew Adams Sent: Sunday, April 01, 2012 9:19 AM To: 'Dino Chiesa' ; 11148@debbugs.gnu.org Subject: RE: bug#11148: 23.3; x-popup-menu not behaving as documented > (x-popup-menu > t > (list "TITLE" > (list "PANE" (list "menu item 1" nil) > (list "menu item 2" nil)))) > ...shows a menu in which both items are selectable. > > This bug may be relevant to bug #11138. One of the proposed fixes for > #11138 at the time of this report is to render a multi-line dialog box > as a menu, with each "line" in the message displayed as an unselectable > menu item. > > But this brief test seems to indicate that the "unselectable" > menu items are not really unselectable, at least on Windows. > In that case the proposed fix would be unsatisfactory. First, I don't really care how bug #11138 is fixed. My point in suggesting splitting a message at \n chars was that the bug can be fixed - even if in a rudimentary way by treating the message's separate lines as separate menu lines (since the code on MS Windows currently treats a `message-box' as a popup menu). Here is what I mean (one way), using the bug report's multiline message: (defun foo (event) (interactive "e") (let ((choice (x-popup-menu event '("Message" ("" "First line in a long-ish message.") ("" "This is line number 2 in the message.") ("" ("OK")))))) (and choice (call-interactively choice)))) (global-set-key [double-mouse-2] 'foo) (global-set-key [mouse-2] nil) Double-click mouse-2. The message's lines are indeed handled as unselectable menu items (yes, on MS Windows). Is that the best looking implementation of a message dialog box? Not IMO. But given the desire to implement a message box using `x-popup-menu', that shows at least that it can be done. Is that better than the current implementation, which jams the multiple lines of the message together? Maybe. Certainly we can hope for a better implementation. Stefan suggested using a tooltip frame, for instance. And maybe (?) at least some of the implementation could be moved from C to Lisp. > I'd like to also raise a documentation bug, as well: there ought to be > examples showing how to use x-popup-menu, on the page I cited above. > A few simple examples will make this method much more usable. Agreed, especially since there are a few different ways to use `x-popup-menu': keymap, list of keymaps, or menu of multiple panes, the last of these being radically different from the first two and unique wrt the rest of Emacs. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 21 23:31:53 2012 Received: (at 11148) by debbugs.gnu.org; 22 Sep 2012 03:31:53 +0000 Received: from localhost ([127.0.0.1]:47785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFGRa-0004jT-Sc for submit@debbugs.gnu.org; Fri, 21 Sep 2012 23:31:52 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:44845) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFGRW-0004jG-Rc for 11148@debbugs.gnu.org; Fri, 21 Sep 2012 23:31:48 -0400 Received: by pbbjt11 with SMTP id jt11so6593605pbb.3 for <11148@debbugs.gnu.org>; Fri, 21 Sep 2012 20:30:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=N//ugNOSzmuC6zS5esfbq/E5V0aOplU/XU/Ci1433V4=; b=xuZ75k76oZ3PIDVZWD5xpTGUa+/6CnMThOOPVjZS0aszL383znORushPIYLfXlSYWh 4Lne2oRg3LYX58AmArkz07P72ywg9JBNgj0GJuj1itgK9lnJYfwowiSpCKl3Rkj7dPIc Oj2n27+b3dWs3lu8blOeeAqXDaD6sGxLZvjYXDURf6PTS+YUXBEIKfSgQpvNVnzb54x6 +3MfZsV0rY5m1iOaoNMiv1AxJi90gqVDePNJ2ibTHOQuN6SZUp41k4juigl76Zsns/BX FmT8mhRqegQa4PnUXq7XB5vksMvFx3DZPaouoY3ssuSqnCNxS7PFw77OqIaeJLShcuH3 SZXA== Received: by 10.66.78.195 with SMTP id d3mr17631132pax.17.1348284605387; Fri, 21 Sep 2012 20:30:05 -0700 (PDT) Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162]) by mx.google.com with ESMTPS id rw5sm503206pbc.54.2012.09.21.20.30.02 (version=SSLv3 cipher=OTHER); Fri, 21 Sep 2012 20:30:04 -0700 (PDT) From: Chong Yidong To: "Dino Chiesa" Subject: Re: bug#11148: 23.3; x-popup-menu not behaving as documented References: Date: Sat, 22 Sep 2012 11:30:00 +0800 In-Reply-To: (Dino Chiesa's message of "Sun, 1 Apr 2012 13:36:48 -0700") Message-ID: <876276ag5j.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11148 Cc: 11148@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) "Dino Chiesa" writes: > It may be that doc changes are the way to fix 11148. Fixed in trunk, thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 21 23:31:59 2012 Received: (at control) by debbugs.gnu.org; 22 Sep 2012 03:31:59 +0000 Received: from localhost ([127.0.0.1]:47788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFGRi-0004jl-Md for submit@debbugs.gnu.org; Fri, 21 Sep 2012 23:31:58 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:44845) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFGRg-0004jG-Bv for control@debbugs.gnu.org; Fri, 21 Sep 2012 23:31:57 -0400 Received: by mail-pb0-f44.google.com with SMTP id jt11so6593605pbb.3 for ; Fri, 21 Sep 2012 20:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=alD8OBwIjaaS13S3tV/mWy9YZsm2GhsZAkDv/e6MyZE=; b=Sipa59nChpUXHf/+ozZwhekFbi6Ns7D2JGaJ+m2HbIkbUeUFmv+22IDbzBAnX8rd/j N37sOxEUKs7jUjRpqCEizPCCh3xeGWg5HXh4DpJwmpDY8t6KDoVJOs6C8V9eZc3ZBdhD jxPXn1FvrQBzMGuW/Eek9AZm9nh7RSZq5vVIaulAYpvfqm/diwdvGNWeQ3r7uolSKu4V 8bEMKeg+GJYgS3/47P2b2n8PtuVTyd+a6KPkIiQau4OHK3oUvLpZoyfhJb0KeYRoNef2 SOouhFHGvO+1GSyNxAaYUGRfgO06yqNonIn4lh88h4BOzAwFFI1FXEQsGGwQ42ULxuZ3 hgSQ== Received: by 10.68.227.165 with SMTP id sb5mr20107099pbc.82.1348284615894; Fri, 21 Sep 2012 20:30:15 -0700 (PDT) Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162]) by mx.google.com with ESMTPS id pv9sm6028686pbb.67.2012.09.21.20.30.13 (version=SSLv3 cipher=OTHER); Fri, 21 Sep 2012 20:30:15 -0700 (PDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 11148 Date: Sat, 22 Sep 2012 11:30:11 +0800 Message-ID: <87k3vmspj0.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) close 11148 thanks From unknown Mon Jun 23 09:37:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 20 Oct 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator