From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#44764: 28.0.50; Wrong menu binding for file in tree fileset Date: Fri, 20 Nov 2020 12:45:24 -0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000461bdb05b48bbc2b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39625"; mail-complaints-to="usenet@ciao.gmane.io" To: 44764@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 20 16:46:49 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kg8ca-000ACH-Og for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Nov 2020 16:46:48 +0100 Original-Received: from localhost ([::1]:47704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kg8cZ-0007LX-Md for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Nov 2020 10:46:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kg8bt-0006OD-Bn for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2020 10:46:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kg8bq-0002pa-4l for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2020 10:46:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kg8bq-0001me-0Q for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2020 10:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Nov 2020 15:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44764 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.16058871445841 (code B ref -1); Fri, 20 Nov 2020 15:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Nov 2020 15:45:44 +0000 Original-Received: from localhost ([127.0.0.1]:44125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kg8bX-0001Vb-KH for submit@debbugs.gnu.org; Fri, 20 Nov 2020 10:45:44 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:34270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kg8bW-0001Tj-0A for submit@debbugs.gnu.org; Fri, 20 Nov 2020 10:45:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kg8bV-0006Kr-Mt for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2020 10:45:41 -0500 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:39990) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kg8bS-0002fb-Gt for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2020 10:45:40 -0500 Original-Received: by mail-wm1-x32b.google.com with SMTP id a3so10189186wmb.5 for ; Fri, 20 Nov 2020 07:45:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bhczSX8EyfMkssbYPVXRPs89mnLXJvALEYcg/+xy6NE=; b=YmzV9K9rBERI1nxP8/Sk9+Yd8H5vPcOi9uO19fHnbq6tX7MX4GceVNgsZGfRr5Gy1V pz4ZsWix+n+ci6y6oEo7VJUftSza3WTls87oom77AsoWFj/fn9URyEZ1bZyDfO2wofaU YDLDAltwueHfKZD35e4YRu0DeWxXgZIbdNyqBnCgQg/+2TPTGzFT1ak7pjxwZa0zjno1 Tom0lp2J64VZPcuHwsTUZuohxNMOIyqKwRsekhpRA6gUzzUhKtcJOBA4ZqiqIuuDhDEo CZse5L6TAQpaUecN5+9FEcy7LTXzaSYGycxLSnI2goQXD8QK2HujItuZ7anJ8aRSCPJg lxsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bhczSX8EyfMkssbYPVXRPs89mnLXJvALEYcg/+xy6NE=; b=Hrq9GQE4pYHQu5Y5SVcIbKUW42wxXY5TCCle9iuEzF1f+NWyR3m4NTZRIt3TGmzevN ZCG8bTw/uXQyMcNDsO6ldagoUervo7c7Jsha4WPcOqIT/G3VVauw7LhnM1L2+0ImPK47 EUskJlovpA55Ews1u72+/auNGpWA2wK7VuWJrYMKVcUmKVsoQKaE2EeRR5IkQ3h7+zUr IfIrEHAUJeYcezKhCRgCV99vJLAMFBcLp69qQGbxOZMdjOToKowqgwR+JkMdGpmXCVQ1 dKzyeocof0l+AEEEzmbdPRkd4OGMu1mOZqd4syarrw9gc7Gzj6Id+6/f4d7fvgkaA9r7 63yg== X-Gm-Message-State: AOAM532DXolyaer8/KnU1N2iUrhgFL4tUzi2oLoMXsrQd1ayzFY4+wpn ciKZPxxkK20fNWWKvgPWjeBToGoi7cUuvk+XiLIV8zNOznQ= X-Google-Smtp-Source: ABdhPJwxSF0VG6s1D6cQ4KHV4sNhqJoYKLrhlFdGBuVBDmg5YHrira9h2g+EI/VJH+titQ0Qn5vcqd+N3yGW9W2TQ7Q= X-Received: by 2002:a1c:bac1:: with SMTP id k184mr10156485wmf.76.1605887135717; Fri, 20 Nov 2020 07:45:35 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=maurooaranda@gmail.com; helo=mail-wm1-x32b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:193787 Archived-At: --000000000000461bdb05b48bbc2b Content-Type: text/plain; charset="UTF-8" To reproduce: 0) Setup a directory with subdirectories and files, for later definition of a tree fileset: mkdir fileset-test cd fileset-test touch file.el mkdir subdir cd subdir touch file1.el file2.el file3.el file4.el file5.el 5 files seems kinda arbitrary, but it's needed so that one of the files is left alone as a menu item. 1) Start Emacs: emacs -Q 2) Eval: (filesets-init) 3) M-x set-variable RET filesets-max-submenu-length RET 3 This is so I don't bore you with creating more than 25 files. 4) M-x filesets-edit Add a new entry to filesets-data, like so: Name: test In Data, select the Directory Tree option and then: Dir: /path/to/fileset-test Pattern: ^.+\.el$ Set for current session. Now data should look like this: (("test (:tree "path/to/fileset-test" "^.+\\.el$"))) 5) Click the File menu, and follow the Filesets entry, then the test entry and finally the subdir entry. You should see that file1.el and file2.el are grouped. Also, file3.el and file4.el got grouped, while file5.el is left alone. This is OK. Clicking any file but file5.el works fine. But clicking file5.el raises an error: Invalid function: (filesets-file-open nil '"/path/to/fileset-test/subdir/file5.el" '"test") The menu entry for file5.el is wrong. In GNU Emacs 28.0.50 (build 38, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10) of 2020-11-20 built on tbb-desktop Repository revision: b4b1bd6e03d739871dd3ba51e8de0be2d272b766 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Ubuntu 18.04.5 LTS Configured features: XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS PDUMPER Important settings: value of $LC_MONETARY: es_AR.UTF-8 value of $LC_NUMERIC: es_AR.UTF-8 value of $LC_TIME: es_AR.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-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-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml easymenu mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 50661 8454) (symbols 48 6724 0) (strings 32 18220 2426) (string-bytes 1 603826) (vectors 16 11421) (vector-slots 8 163042 11826) (floats 8 22 40) (intervals 56 196 0) (buffers 984 11)) --000000000000461bdb05b48bbc2b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
To reproduce:
0) Setup a directory with subdirectories = and files, for later definition
of a tree fileset:
mkdir fileset-test=
cd fileset-test
touch file.el
mkdir subdir
cd subdir
touch = file1.el file2.el file3.el file4.el file5.el

5 files seems kinda arb= itrary, but it's needed so that one of the files
is left alone as a = menu item.

1) Start Emacs: emacs -Q

2) Eval: (filesets-init)<= br>
3) M-x set-variable RET filesets-max-submenu-length RET 3

Thi= s is so I don't bore you with creating more than 25 files.

4) M-= x filesets-edit

Add a new entry to filesets-data, like so:
Name: = test
In Data, select the Directory Tree option and then:
Dir: /path/t= o/fileset-test
Pattern: ^.+\.el$

Set for current session.

= Now data should look like this:
(("test (:tree "path/to/filese= t-test" "^.+\\.el$")))

5) Click the File menu, and fo= llow the Filesets entry, then the test
entry and finally the subdir entr= y.

You should see that file1.el and file2.el are grouped.=C2=A0 Also= , file3.el
and file4.el got grouped, while file5.el is left alone.=C2=A0= This is OK.

Clicking any file but file5.el works fine.=C2=A0 But cl= icking file5.el raises
an error:
Invalid function: (filesets-file-ope= n nil '"/path/to/fileset-test/subdir/file5.el" '"tes= t")

The menu entry for file5.el is wrong.


In GNU Emacs 28.0.50 (build 38, x86_64-pc-linux-gnu= , GTK+ Version 3.22.30, cairo version 1.15.10)
=C2=A0of 2020-11-20 built= on tbb-desktop
Repository revision: b4b1bd6e03d739871dd3ba51e8de0be2d27= 2b766
Repository branch: master
Windowing system distributor 'The= X.Org Foundation', version 11.0.12008000
System Description: Ubuntu= 18.04.5 LTS

Configured features:
XPM JPEG TIFF GIF PNG CAIRO SOU= ND DBUS GSETTINGS GLIB NOTIFY INOTIFY
LIBSELINUX GNUTLS LIBXML2 FREETYPE= HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11 XDBE XIM MODULES THREADS PDU= MPER

Important settings:
=C2=A0 value of $LC_MONETARY: es_AR.UTF-= 8
=C2=A0 value of $LC_NUMERIC: es_AR.UTF-8
=C2=A0 value of $LC_TIME: = es_AR.UTF-8
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-coding-s= ystem: utf-8-unix

Major mode: Lisp Interaction

Minor modes in= effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0= eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode= : t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-na= me-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mo= de: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
= =C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0= line-number-mode: t
=C2=A0 transient-mark-mode: t

Load-path shad= ows:
None found.

Features:
(shadow sort mail-extr emacsbug mes= sage rmc puny dired dired-loaddefs
rfc822 mml easymenu mml-sec epa deriv= ed epg epg-config gnus-util rmail
rmail-loaddefs auth-source cl-seq eiei= o eieio-core cl-macs
eieio-loaddefs password-cache json map text-propert= y-search time-date
subr-x seq byte-opt gv bytecomp byte-compile cconv mm= -decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mail= header cl-loaddefs
cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util ma= il-prsvr mail-utils
tooltip eldoc electric uniquify ediff-hook vc-hooks = lisp-float-type
mwheel term/x-win x-win term/common-win x-dnd tool-bar d= nd fontset image
regexp-opt fringe tabulated-list replace newcomment tex= t-mode elisp-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn= -eshadow isearch
timer select scroll-bar mouse jit-lock font-lock syntax= facemenu
font-core term/tty-colors frame minibuffer cl-generic cham geo= rgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao koreanjapanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
= ethiopic indian cyrillic chinese composite charscript charprop
case-tabl= e epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice= button loaddefs faces cus-face macroexp files
window text-properties ov= erlay sha1 md5 base64 format env code-pages
mule custom widget hashtable= -print-readable backquote threads dbusbind
inotify dynamic-setting syste= m-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit x mu= lti-tty make-network-process emacs)

Memory information:
((conses = 16 50661 8454)
=C2=A0(symbols 48 6724 0)
=C2=A0(strings 32 18220 2426= )
=C2=A0(string-bytes 1 603826)
=C2=A0(vectors 16 11421)
=C2=A0(ve= ctor-slots 8 163042 11826)
=C2=A0(floats 8 22 40)
=C2=A0(intervals 56= 196 0)
=C2=A0(buffers 984 11))
--000000000000461bdb05b48bbc2b--