From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Dino Chiesa" Newsgroups: gmane.emacs.bugs Subject: bug#11148: 23.3; x-popup-menu not behaving as documented Date: Sun, 1 Apr 2012 08:45:12 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0050_01CD0FE3.C06E2850" X-Trace: dough.gmane.org 1333295162 25393 80.91.229.3 (1 Apr 2012 15:46:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 1 Apr 2012 15:46:02 +0000 (UTC) To: 11148@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 01 17:46:00 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SEMyd-0000T8-EF for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Apr 2012 17:45:59 +0200 Original-Received: from localhost ([::1]:49186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEMyc-0001hC-QR for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Apr 2012 11:45:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEMyY-0001gg-Vf for bug-gnu-emacs@gnu.org; Sun, 01 Apr 2012 11:45:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEMyW-00037c-28 for bug-gnu-emacs@gnu.org; Sun, 01 Apr 2012 11:45:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEMyV-00037X-Ru for bug-gnu-emacs@gnu.org; Sun, 01 Apr 2012 11:45:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SEMyg-0001w9-5X for bug-gnu-emacs@gnu.org; Sun, 01 Apr 2012 11:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Dino Chiesa" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Apr 2012 15:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11148 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.13332951187393 (code B ref -1); Sun, 01 Apr 2012 15:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Apr 2012 15:45:18 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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] 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:58436 Archived-At: 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--