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?