* .fmt files missing in speedbar
@ 2023-06-23 17:28 jm
2023-06-24 15:47 ` Yuri Khan
2023-06-24 21:53 ` Stephen Berman
0 siblings, 2 replies; 4+ messages in thread
From: jm @ 2023-06-23 17:28 UTC (permalink / raw)
To: help-gnu-emacs
In emacs -Q I evaluate:
(add-to-list 'auto-mode-alist '("\\.fmt\\'" . html-mode))
(setq
speedbar-directory-unshown-regexp "^\(\.\.*$\)\'"
speedbar-show-unknown-files t)
but browsing a directory in the speedbar containing ‘file.fmt’ files
appears empty. Changing the extension to ‘.FMT’ makes it appear. In fact
I cannot find any other extension that causes a file to not appear; e.g.
‘.file.ext’, ‘file.bonkers’, ‘file.♑’, etc. all show up.
What am I missing here?
In GNU Emacs 30.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version
3.24.38, cairo version 1.17.8) of 2023-06-21 built on localhost
Repository revision: 72f1c12e58ec2654779506480774e627d46d3693
Repository branch: master
System Description: Fedora Linux 38 (Workstation Edition)
Configured using:
'configure --with-native-compilation --with-pgtk'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY
INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: .fmt files missing in speedbar
2023-06-23 17:28 .fmt files missing in speedbar jm
@ 2023-06-24 15:47 ` Yuri Khan
2023-06-24 21:53 ` Stephen Berman
1 sibling, 0 replies; 4+ messages in thread
From: Yuri Khan @ 2023-06-24 15:47 UTC (permalink / raw)
To: jm; +Cc: help-gnu-emacs
On Sat, 24 Jun 2023 at 22:36, <jm@pub.pink> wrote:
> (setq
> speedbar-directory-unshown-regexp "^\(\.\.*$\)\'"
You forgot to double your backslashes here, so they only act as string
escapes, not regexp escapes. The actual value of
‘speedbar-directory-unshown-regexp’ is ‘^(..*$)'’, which means “start
of string followed by open parenthesis followed by one or more
non-newline characters followed by end of line followed by close
parenthesis then single quote”. Which ought not match anything.
> browsing a directory in the speedbar containing ‘file.fmt’ files
> appears empty. Changing the extension to ‘.FMT’ makes it appear. In fact
> I cannot find any other extension that causes a file to not appear; e.g.
> ‘.file.ext’, ‘file.bonkers’, ‘file.♑’, etc. all show up.
I have no explanation for this behavior you observe. (I also have no
experience with speedbar.)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: .fmt files missing in speedbar
2023-06-23 17:28 .fmt files missing in speedbar jm
2023-06-24 15:47 ` Yuri Khan
@ 2023-06-24 21:53 ` Stephen Berman
2023-06-25 0:00 ` john muhl
1 sibling, 1 reply; 4+ messages in thread
From: Stephen Berman @ 2023-06-24 21:53 UTC (permalink / raw)
To: jm; +Cc: help-gnu-emacs
On Fri, 23 Jun 2023 12:28:44 -0500 jm@pub.pink wrote:
> In emacs -Q I evaluate:
>
> (add-to-list 'auto-mode-alist '("\\.fmt\\'" . html-mode))
> (setq
> speedbar-directory-unshown-regexp "^\(\.\.*$\)\'"
> speedbar-show-unknown-files t)
>
> but browsing a directory in the speedbar containing ‘file.fmt’ files
> appears empty. Changing the extension to ‘.FMT’ makes it appear. In fact
> I cannot find any other extension that causes a file to not appear; e.g.
> ‘.file.ext’, ‘file.bonkers’, ‘file.♑’, etc. all show up.
>
> What am I missing here?
Files with extension .fmt are matched by speedbar-file-unshown-regexp,
whose doc string says: "Regexp matching files we don’t want displayed in
a speedbar buffer. It is generated from the variable
‘completion-ignored-extensions’."
Steve Berman
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: .fmt files missing in speedbar
2023-06-24 21:53 ` Stephen Berman
@ 2023-06-25 0:00 ` john muhl
0 siblings, 0 replies; 4+ messages in thread
From: john muhl @ 2023-06-25 0:00 UTC (permalink / raw)
To: Stephen Berman; +Cc: help-gnu-emacs
Stephen Berman <stephen.berman@gmx.net> writes:
> Files with extension .fmt are matched by speedbar-file-unshown-regexp,
> whose doc string says: "Regexp matching files we don’t want displayed in
> a speedbar buffer. It is generated from the variable
> ‘completion-ignored-extensions’."
Thanks. I figured it out earlier but think I forgot to CC the list with
the follow up.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-06-25 0:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-23 17:28 .fmt files missing in speedbar jm
2023-06-24 15:47 ` Yuri Khan
2023-06-24 21:53 ` Stephen Berman
2023-06-25 0:00 ` john muhl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).