From unknown Tue Sep 09 16:56:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44764: 28.0.50; Wrong menu binding for file in tree fileset 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-GNU-PR-Keywords: To: 44764@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs Received: via spool by submit@debbugs.gnu.org id=B.16058871445841 (code B ref -1); Fri, 20 Nov 2020 15:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Nov 2020 15:45:44 +0000 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 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 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 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 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) MIME-Version: 1.0 From: Mauro Aranda Date: Fri, 20 Nov 2020 12:45:24 -0300 Message-ID: Content-Type: multipart/alternative; boundary="000000000000461bdb05b48bbc2b" 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-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --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-- From unknown Tue Sep 09 16:56:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44764: 28.0.50; Wrong menu binding for file in tree fileset References: In-Reply-To: Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Nov 2020 15:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44764 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 44764@debbugs.gnu.org Received: via spool by 44764-submit@debbugs.gnu.org id=B44764.160588778312568 (code B ref 44764); Fri, 20 Nov 2020 15:57:02 +0000 Received: (at 44764) by debbugs.gnu.org; 20 Nov 2020 15:56:23 +0000 Received: from localhost ([127.0.0.1]:44179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kg8lr-0003Gd-BD for submit@debbugs.gnu.org; Fri, 20 Nov 2020 10:56:23 -0500 Received: from mail-wr1-f53.google.com ([209.85.221.53]:39086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kg8lq-0003GL-IK for 44764@debbugs.gnu.org; Fri, 20 Nov 2020 10:56:23 -0500 Received: by mail-wr1-f53.google.com with SMTP id o15so10527508wru.6 for <44764@debbugs.gnu.org>; Fri, 20 Nov 2020 07:56:22 -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=GD+efoq6lyXUT4dM3BJ5XS6LCJW79S9Ha6WNlx5vy8s=; b=UaNc4Mry4jvo+MErTFe+G/CBiLhR8jPDwcaKv/dAP9FxAhy70Z9iOhrVCruc0lEYbe Zanf0KDkNPN15Sob3TMpO64mxABJI8br5y5Sr5sQTbmmgI5E8QGppmM/mm6GwM4x88VO PRi5X6iJygguumNoZCmqNbS+SUeaIr8sBBRnfQqeoD1Dim3tdDUMctfjua2uxVkJb8Zz RhT6KQCk9W4uSovlO4OF/kSIaYQ53P8n33qk2rullX8CMg8VY8HCnN3cVlNT7eURdr3j T5C6NgtdMOezaORozR7EKgRi27hfJKUd/g83UV9DfhLFsNjB7Ybtvclsc+W8Jpy8GKEy I1WQ== 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=GD+efoq6lyXUT4dM3BJ5XS6LCJW79S9Ha6WNlx5vy8s=; b=toySp19YsH0NUl9TBs1D6TovRCknuaC81Aq0xobkYXUPbEG12R631Nu5hNrwrHN9CD c+sLCPd2YL6HlZyT+a5y4XhRpxwOELx20cOZxFLWhPexMrXxCpcXqjt2c6gz2aus7OZ9 x2GPoCM84cqIiCmL0hq3wldxrGxSI69eYS5Sl5vfL4+axnPEvk0d2pijoIP4pmrGBp/M 4nyEzHx3TJKYK7Fw1hulagcxW9Fp/GSqFyvHotRRgQjK1+jSfr9OBfIoD5m31jPbeuJQ 4G6ET1kkPEsbgHVngLCruuRwaGxE/gFEju7gpVP9gnn68qtiYYvkpXQaZ4P2LbMTV6Kq XJZw== X-Gm-Message-State: AOAM533rr1a5KYC6zT0NABwnOwuG73Rzlg+4YONXAUT9QygJhcW8KsE7 wf5AhU5qjIYzksLMajUdcpiI7YcPlrPW0CiBuorsrMZvn4E= X-Google-Smtp-Source: ABdhPJzGEMIXmYRnOefYDfSBImtnpPTUrhP7eLvU+Ti7marU47fF4SRebipE1OxNo24/zSi2Dxb2pP0ydXPkNdU3Ehw= X-Received: by 2002:a5d:4d02:: with SMTP id z2mr16930507wrt.109.1605887776530; Fri, 20 Nov 2020 07:56:16 -0800 (PST) MIME-Version: 1.0 From: Mauro Aranda Date: Fri, 20 Nov 2020 12:56:04 -0300 Message-ID: Content-Type: multipart/mixed; boundary="000000000000790d0305b48be2d3" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000790d0305b48be2d3 Content-Type: multipart/alternative; boundary="000000000000790d0205b48be2d1" --000000000000790d0205b48be2d1 Content-Type: text/plain; charset="UTF-8" tags 44764 patch quit Mauro Aranda writes: > 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. The attached patch should fix it. OK to install? --000000000000790d0205b48be2d1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
tags 44764 patch
quit

Mauro Aranda <maurooar= anda@gmail.com> writes:

> 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.e= l file2.el file3.el file4.el file5.el
>
> 5 files seems kinda a= rbitrary, but it's needed so that one of the files
> is left alon= e as a menu item.
>
> 1) Start Emacs: emacs -Q
>
> = 2) Eval: (filesets-init)
>
> 3) M-x set-variable RET filesets-m= ax-submenu-length RET 3
>
> This is so I don't bore you wit= h creating more than 25 files.
>
> 4) M-x filesets-edit
>=
> Add a new entry to filesets-data, like so:
> Name: test
&= gt; In Data, select the Directory Tree option and then:
> Dir: /path/= to/fileset-test
> Pattern: ^.+\.el$
>
> Set for current s= ession.
>
> Now data should look like this:
> (("tes= t (:tree "path/to/fileset-test" "^.+\\.el$")))
><= br>> 5) Click the File menu, and follow the Filesets entry, then the tes= t
> entry and finally the subdir entry.
>
> You should se= e 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.
&g= t;
> Clicking any file but file5.el works fine.=C2=A0 But clicking fi= le5.el raises
> an error:
> Invalid function: (filesets-file-op= en nil '"/path/to/fileset-test/subdir/file5.el" '"te= st")
>
> The menu entry for file5.el is wrong.

The = attached patch should fix it.=C2=A0 OK to install?
--000000000000790d0205b48be2d1-- --000000000000790d0305b48be2d3 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Fix-menu-binding-for-files-in-fileset.patch" Content-Disposition: attachment; filename="0001-Fix-menu-binding-for-files-in-fileset.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_khqg1qh60 RnJvbSA2ZjUwMTJkN2NjN2NiMWJmM2U2NTAzNjZiMTRmYzM2NzI2MWMxODZmIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBNYXVybyBBcmFuZGEgPG1hdXJvb2FyYW5kYUBnbWFpbC5jb20+ CkRhdGU6IEZyaSwgMjAgTm92IDIwMjAgMTI6NTI6NTYgLTAzMDAKU3ViamVjdDogW1BBVENIXSBG aXggbWVudSBiaW5kaW5nIGZvciBmaWxlcyBpbiBmaWxlc2V0CgoqIGxpc3AvZmlsZXNldHMuZWwg KGZpbGVzZXRzLXJlbWFrZS1zaG9ydGN1dCk6IFdlIHdhbnQgdGhlIGNhbGxiYWNrIG9mCnRoZSBt ZW51IGl0ZW0sIG5vdCBhIGxpc3QgdGhhdCBjb250YWlucyB0aGUgY2FsbGJhY2suICAoQnVnIzQ0 NzY0KQotLS0KIGxpc3AvZmlsZXNldHMuZWwgfCAzICstLQogMSBmaWxlIGNoYW5nZWQsIDEgaW5z ZXJ0aW9uKCspLCAyIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2xpc3AvZmlsZXNldHMuZWwg Yi9saXNwL2ZpbGVzZXRzLmVsCmluZGV4IGM3ZWMzZjc3ZjQuLmNkZGFjY2JiMmEgMTAwNjQ0Ci0t LSBhL2xpc3AvZmlsZXNldHMuZWwKKysrIGIvbGlzcC9maWxlc2V0cy5lbApAQCAtMTg3OCw4ICsx ODc4LDcgQEAgZmlsZXNldHMtcmVtYWtlLXNob3J0Y3V0CiAJCSAgICAgICAoc3Vic3RyaW5nIChl bHQgc3VibWVudSAwKSAyKSkpKQogICAgIChpZiAobGlzdHAgc3VibWVudSkKIAkoY29ucyBuYW1l IChjZHIgc3VibWVudSkpCi0gICAgICAoYXBwbHkgJ3ZlY3RvciAobGlzdCBuYW1lIChjZHIgKGFw cGVuZCBzdWJtZW51IG5pbCkpKSkpKSkKLTsgICAgICAodmNvbmNhdCBgWyxuYW1lXSAoc3Vic2Vx IHN1Ym1lbnUgMSkpKSkpCisgICAgICAoYXBwbHkgJ3ZlY3RvciAobGlzdCBuYW1lIChjYWRyIChh cHBlbmQgc3VibWVudSBuaWwpKSkpKSkpCiAKIChkZWZ1biBmaWxlc2V0cy13cmFwLXN1Ym1lbnUg KHN1Ym1lbnUtYm9keSkKICAgIlNwbGl0IGxvbmcgc3VibWVudXMuIgotLSAKMi4yOS4yCgo= --000000000000790d0305b48be2d3-- From unknown Tue Sep 09 16:56:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44764: 28.0.50; Wrong menu binding for file in tree fileset Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Nov 2020 06:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44764 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Mauro Aranda Cc: 44764@debbugs.gnu.org Received: via spool by 44764-submit@debbugs.gnu.org id=B44764.160620044022762 (code B ref 44764); Tue, 24 Nov 2020 06:48:02 +0000 Received: (at 44764) by debbugs.gnu.org; 24 Nov 2020 06:47:20 +0000 Received: from localhost ([127.0.0.1]:54599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khS6h-0005v1-Rg for submit@debbugs.gnu.org; Tue, 24 Nov 2020 01:47:20 -0500 Received: from quimby.gnus.org ([95.216.78.240]:49744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khS4m-0005kP-Ry for 44764@debbugs.gnu.org; Tue, 24 Nov 2020 01:45:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7jgmEVdGUwsuMCZVdboXGdt4XbhKxNo1gmKifSCwRpU=; b=RN2EBwsRgjYbyGFIKvQ7FiDrRv lHtnbM2ikYAiNKVEfpqtV5+nKyTGtQtFMCIbdvmdwu3u1+XZb9aPlillM31hjmQaJqU+Z/Or1JWGr G+q5QoRsVD+D3/BMuDh2xw+2fouDcDxpTNuMitlGWEdJ6EML2a+tITd6MCZCWvYdrGcs=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khS4e-0000Vk-Br; Tue, 24 Nov 2020 07:45:15 +0100 From: Lars Ingebrigtsen References: X-Now-Playing: The Police's =?UTF-8?Q?=5FZenyatt=C3=A0?= Mondatta_: "Shadows In The Rain" Date: Tue, 24 Nov 2020 07:45:11 +0100 In-Reply-To: (Mauro Aranda's message of "Fri, 20 Nov 2020 12:56:04 -0300") Message-ID: <87h7pf9rt4.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Mauro Aranda writes: > The attached patch should fix it. OK to install? [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Mauro Aranda writes: > The attached patch should fix it. OK to install? [...] > - (apply 'vector (list name (cdr (append submenu nil))))))) > -; (vconcat `[,name] (subseq submenu 1))))) > + (apply 'vector (list name (cadr (append submenu nil))))))) I'm not very familiar with the filesets code, but I think this makes sense. I wonder slightly about that commented-out code, but it's been there since the file was added to Emacs, so I guess we won't find out what that's about. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Sep 09 16:56:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44764: 28.0.50; Wrong menu binding for file in tree fileset References: Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Nov 2020 11:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44764 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Lars Ingebrigtsen Cc: 44764@debbugs.gnu.org Received: via spool by 44764-submit@debbugs.gnu.org id=B44764.16062187014833 (code B ref 44764); Tue, 24 Nov 2020 11:52:01 +0000 Received: (at 44764) by debbugs.gnu.org; 24 Nov 2020 11:51:41 +0000 Received: from localhost ([127.0.0.1]:57858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khWrE-0001Fs-WB for submit@debbugs.gnu.org; Tue, 24 Nov 2020 06:51:41 -0500 Received: from mail-qk1-f179.google.com ([209.85.222.179]:44971) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khWr9-0001FR-6a; Tue, 24 Nov 2020 06:51:35 -0500 Received: by mail-qk1-f179.google.com with SMTP id y18so3739254qki.11; Tue, 24 Nov 2020 03:51:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:from:to:cc:subject:in-reply-to:date:mime-version; bh=NYerKx4yNnfbcPPnFcWc2z2XUbamgNrCvC7DQoe+I44=; b=WPbTvZszN745uZN8s54r4bKUS2MUV2EQTdjMRefFkaOmNw5AH8PZPaiMxMQpT1wZev GPLX+wPVQ8baH4Kv+OM7qSsySikfa6fDbtzhxFx0ZQXdvzKBDAbME15pVctzEvSuYXLw JDWRZTH+ax9tlO+Bh7vCiOMWwrlmYDT0jNgoWf/DbcsDIAOmZOpNfwtZ4lsxgsMCfWX7 F4HWDcWwvLM53a1E0vATmM+4cE/bVOQkTbEBjNT/iTWMIngn5hyAzHnnyFo4JeQYpOtj SKFl093u/nPFNjNw5eiW0MsFZTN2fsNBVoNatpecXRJqo3v/nAE2z79zEBeKJ5ChP3pF 3WFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:from:to:cc:subject:in-reply-to:date :mime-version; bh=NYerKx4yNnfbcPPnFcWc2z2XUbamgNrCvC7DQoe+I44=; b=o8Ff016BacuY8kjKTRVF4eyBx4AKl3scj/NjU60Qx72jmost699RTLmoa6YDIkFiiS ySRfRRkvsSNWZVQGfDGRjynSZQM5wKHSUx/OlA7UNpyM8L++c2r8uvrZ1+e3dKkJEGdA q7WSX/YcOjMVrmDGTz8DKZlRI6vRh96MUJIdXeDJ5dPOIwM9rW1mNsPnzxA675L4BBja 3/eOqP9AXJl4zj0edkauiATvuqxX7GtaCimWql8stsQMf3Y777Nbv9WpW/yj1zI/TTGT 93P6g/tDSP/K7fCCIHSVnFuZ0denZPE08GjbY2AzWV9XglC+jyrEghGhCFFFNVJVHgnD HtjQ== X-Gm-Message-State: AOAM5324d4ePMGdMa/4ZmBHwyc8agw6NWj0bVh9XBhgvFYS8P1K9lkpI 0QXZYTQIkC0CAYyBCplYXWocqsveWwTuNQ== X-Google-Smtp-Source: ABdhPJz2yTs2w3PfDBX5G7xsDukCM5SPoknUzpISaLRfohvJp804NQovhsgSdo/JjoDpb+mTYebtyg== X-Received: by 2002:ae9:c306:: with SMTP id n6mr4095208qkg.77.1606218689033; Tue, 24 Nov 2020 03:51:29 -0800 (PST) Received: from tbb-desktop ([201.213.132.172]) by smtp.gmail.com with ESMTPSA id a42sm3936650qtk.64.2020.11.24.03.51.26 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Nov 2020 03:51:28 -0800 (PST) Message-ID: <5fbcf3c0.1c69fb81.9c320.fb14@mx.google.com> X-Google-Original-Message-ID: <87o8jngegz.fsf@maurooaranda@gmail.com> From: Mauro Aranda In-Reply-To: <87h7pf9rt4.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 24 Nov 2020 07:45:11 +0100) Date: Tue, 24 Nov 2020 08:51:24 -0300 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 44764 fixed close 44764 quit Lars Ingebrigtsen writes: > Mauro Aranda writes: >> - (apply 'vector (list name (cdr (append submenu nil))))))) >> -; (vconcat `[,name] (subseq submenu 1))))) >> + (apply 'vector (list name (cadr (append submenu nil))))))) > > I'm not very familiar with the filesets code, but I think this makes > sense. I wonder slightly about that commented-out code, but it's been > there since the file was added to Emacs, so I guess we won't find out > what that's about. I think it's an attempt to do the same operation, but using subseq, or cl-subseq nowadays. It's not a big deal, so I kept that commented out code, in case someone wants to take a look at that someday.