From unknown Wed Jun 25 02:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26190: 25.1; ffap problem with curly braces Resent-From: wyousef@fcih.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Mar 2017 11:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26190 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 26190@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.149001075921278 (code B ref -1); Mon, 20 Mar 2017 11:53:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Mar 2017 11:52:39 +0000 Received: from localhost ([127.0.0.1]:35924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cpvrb-0005X8-5Z for submit@debbugs.gnu.org; Mon, 20 Mar 2017 07:52:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cpvrZ-0005Ww-W5 for submit@debbugs.gnu.org; Mon, 20 Mar 2017 07:52:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cpvrR-0004J3-Lw for submit@debbugs.gnu.org; Mon, 20 Mar 2017 07:52:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53236) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cpvrR-0004Il-IY for submit@debbugs.gnu.org; Mon, 20 Mar 2017 07:52:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cpvrO-0001k3-G5 for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2017 07:52:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cpvrJ-0004Dl-8u for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2017 07:52:26 -0400 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:38417) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cpvrI-0004BI-R2 for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2017 07:52:21 -0400 Received: by mail-wm0-x22f.google.com with SMTP id t189so62137779wmt.1 for ; Mon, 20 Mar 2017 04:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fcih-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=rzSVw5TQvUbMKkC0QORriJ11YrejjTtrTNjwPXpa8ug=; b=e+0+oFL8umFIWpIfB9ThjnzYaK4NG7J3080HYvpp3s1Z9+fqbsoZp2sjV1Xt0LUHlY xRRyhMM5t6UBFTQ6aNHulT/PuAxMLkEYLMzBq9Au8IxD6Rs61DA3kf2q5nFltCVOtOWV IfsynW+d/akw78OI5OVGzmgc7kNjihQDhvIcojMTiby/AppjfDQzvO9JF3PhZvlW/CtC jv5KtEobkPg5VmCEi9qWagvJFV9NsIAvgSw4vlQyghVhmR64fEa/hjbdgYdnH2jLhUHp B7EQasp4oHvKA1NkjLq2jCgTDiNWkr1vK4EoIxrJ9fXB4rZbX7+vjzCJSy7gbSi9jyaZ 24fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=rzSVw5TQvUbMKkC0QORriJ11YrejjTtrTNjwPXpa8ug=; b=P0So8c3noJgiDYF4FnOHNzM0qoJyOmp3KiK4Cur3ZoDqO9+FvVZPyrk/qJ10fpeBNv l6FWE+GlSurJN2YQ/jVJwJ01KIRu5UPBM/f7XLJCZHu+iuv0Wwr3CYLJdrxe+cukj9OX KM8L17kzvs+U9Fe2JmDixVKeuw7fzqB3lSNy4JMuYKEIIKOgK+VXcbiCkwV5epA43i+0 uMtAfKM3cZ5cDIxZvNxDOOVS2QgpwxL4EPcr7JitXXz2n/YHJ1B5hP47cqRQEDGoVGDj FAZQNn/XElTrBOYn4F3qD24XOJPp5ySeKh0OoM/+ZInp/0A3Ft9TeenRpCileyfEBr8e ncXQ== X-Gm-Message-State: AFeK/H1OseQdQdevOaXycvAXVWini0YcUFISMxiAvVHN/1qDzW7MBR2sM68BLkBV1ruthw== X-Received: by 10.28.10.209 with SMTP id 200mr10160936wmk.126.1490010737936; Mon, 20 Mar 2017 04:52:17 -0700 (PDT) Received: from localhost ([156.204.188.195]) by smtp.gmail.com with ESMTPSA id f48sm20395292wrf.17.2017.03.20.04.52.15 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 Mar 2017 04:52:16 -0700 (PDT) From: wyousef@fcih.net X-Google-Original-From: wyousef@localhost.i-did-not-set--mail-host-address--so-tickle-me Date: Mon, 20 Mar 2017 13:52:11 +0200 Message-ID: <87bmswi2s4.fsf@fcih.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.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: -5.0 (-----) In scratch buffer with cursor on {/etc} do M-: (ffap-guesser) RET With emacs-25 =3D> nil With emacs-24.5 =3D> "/etc" Thanks In GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.7) of 2017-02-07 built on arojas Windowing system distributor 'The X.Org Foundation', version 11.0.11902000 Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-strong' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: LaTeX/FMPS Minor modes in effect: TeX-fold-mode: t flyspell-mode: t LaTeX-math-mode: t TeX-PDF-mode: t TeX-source-correlate-mode: t magic-latex-buffer: t pdf-occur-global-minor-mode: t helm-mode: t delete-selection-mode: t show-paren-mode: t show-smartparens-global-mode: t show-smartparens-mode: t smartparens-global-mode: t smartparens-global-strict-mode: t smartparens-strict-mode: t smartparens-mode: t guide-key-mode: t async-bytecomp-package-mode: t reftex-mode: t outline-minor-mode: t shell-dirtrack-mode: t winner-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-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 column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill global-visual-line-mode: t transient-mark-mode: t Recent messages: Removing duplicates... done Applying style hooks... done Mark saved where search started Compiling label environment definitions...done cite: info not available, use =E2=80=98C-c &=E2=80=99 to get it. Scanning entire document... Scanning file /home/wyousef/MyDocuments/Teaching/FCIH/Courses/DataVisualiza= tion/LectureNotes/LectureNotesCS495.tex Scanning file FrontMatter/FrontMatter.tex Scanning chapter * ... [3 times] Scanning document... done Load-path shadows: ~/.emacs.d/loadpath/ps-mule hides /usr/share/emacs/25.1/lisp/ps-mule ~/.emacs.d/loadpath/subr-x hides /usr/share/emacs/25.1/lisp/emacs-lisp/subr= -x Features: (shadow sort org-rmail org-mhe org-irc org-info org-gnus org-docview org-bbdb org-w3m org-table mail-extr emacsbug sendmail helm-command helm-elisp helm-eval edebug reftex-ref reftex-parse gnus-dired autorevert filenotify ace-window avy misearch multi-isearch texmathp preview prv-emacs tex-fold reftex-toc reftex-dcr reftex-auc flyspell ispell tex-buf font-latex latex tex-ispell tex-style tex dbus latexenc smartparens-lua lua-mode helm-sage auto-complete-sage sage-shell-mode deferred magic-latex-buffer iimage smartparens-latex tex-mode dired-tar dired+ image-file bbdb-vcard bbdb-com crm vcard bbdb bbdb-site impatient-mode htmlize cl simple-httpd w3m doc-view w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util pdftools pdf-occur ibuf-ext ibuffer tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet pdf-isearch pdf-misc imenu pdf-tools cus-edit cus-start cus-load wid-edit pdf-view jka-compr pdf-cache pdf-info tq pdf-util image-mode helm-mode helm-files image-dired tramp tramp-compat tramp-loaddefs trampver dired-x dired-aux ffap helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptive helm-info bookmark pp helm-locate helm-grep helm-regexp helm-external helm-utils compile helm-types delsel paren smartparens-config smartparens thingatpt guide-key popwin re-builder auto-complete popup org-ref org-ref-helm-bibtex org-ref-helm helm-bibtex bibtex-completion biblio biblio-download biblio-dissemin biblio-hal biblio-dblp biblio-crossref biblio-arxiv timezone biblio-doi biblio-core let-alist url-queue ido hl-line helm-net browse-url xml helm-help helm helm-source eieio-compat helm-multi-match helm-lib helm-config helm-easymenu async-bytecomp async org-ref-core reftex-cite reftex reftex-vars parsebib subr-x ox-latex ox-icalendar ox-html ox-ascii ox-publish ox org-ref-glossary org-ref-bibtex org-ref-citeproc org-element message idna dired rfc822 mml mml-sec epg mm-decode mm-bodies mm-encode mailabbrev mail-utils gmm-utils mailheader key-chord hydra lv doi-utils org-ref-utils org-ref-pdf url-http tls gnutls url url-proxy url-privacy url-expand url-methods url-history mailcap url-auth mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-cookie url-domsuf url-util url-parse auth-source eieio eieio-core cl-macs gnus-util mm-util help-fns mail-prsvr password-cache url-gw url-vars org-bibtex org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-sh shell pcomplete ob-ditaa ob-python ob-matlab ob-octave ob-latex ob-gnuplot ob-emacs-lisp ob-calc calc-store calc-trail calc-ext calc calc-loaddefs calc-macs ob-R ob-C cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint comint ansi-color ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs json map bibtex f s ucs-normalize dash cl-seq smart-mode-line-dark-theme smart-mode-line rich-minority winner ring edmacro kmacro use-package diminish bind-key easy-mmode finder-inf tex-site info rx package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv benchmark-init advice cl-loaddefs pcase cl-lib benchmark-init-loaddefs time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 708416 37642) (symbols 48 64308 0) (miscs 40 918 1645) (strings 32 189143 16449) (string-bytes 1 6235080) (vectors 16 85592) (vector-slots 8 1257701 56480) (floats 8 1110 1034) (intervals 56 3818 245) (buffers 976 32)) From unknown Wed Jun 25 02:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26190: 25.1; ffap problem with curly braces Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jul 2019 11:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26190 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: wyousef@fcih.net Cc: 26190@debbugs.gnu.org, Dmitry Gutov Received: via spool by 26190-submit@debbugs.gnu.org id=B26190.15641404196819 (code B ref 26190); Fri, 26 Jul 2019 11:27:02 +0000 Received: (at 26190) by debbugs.gnu.org; 26 Jul 2019 11:26:59 +0000 Received: from localhost ([127.0.0.1]:40981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqyNH-0001lt-9r for submit@debbugs.gnu.org; Fri, 26 Jul 2019 07:26:59 -0400 Received: from quimby.gnus.org ([80.91.231.51]:60114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqyND-0001li-QP for 26190@debbugs.gnu.org; Fri, 26 Jul 2019 07:26:58 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hqyN8-0005pd-HY; Fri, 26 Jul 2019 13:26:52 +0200 From: Lars Ingebrigtsen References: <87bmswi2s4.fsf@fcih.net> Date: Fri, 26 Jul 2019 13:26:50 +0200 In-Reply-To: <87bmswi2s4.fsf@fcih.net> (wyousef@fcih.net's message of "Mon, 20 Mar 2017 13:52:11 +0200") Message-ID: <87tvb9m3yd.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: wyousef@fcih.net writes: > In scratch buffer with cursor on {/etc} do M-: (ffap-guesser) RET > > With emacs-25 => nil > With emacs-24.5 => "/etc" The regression occurred with this commit: 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 (-) wyousef@fcih.net writes: > In scratch buffer with cursor on {/etc} do M-: (ffap-guesser) RET > > With emacs-25 => nil > With emacs-24.5 => "/etc" The regression occurred with this commit: commit ba6c32b6decaa2a72a3d5f854efd513e8e82c118 Author: Dmitry Gutov Date: Wed Apr 8 03:18:38 2015 +0300 ffap: Support environment variable expansion in file names Fixes: debbugs:19839 * lisp/ffap.el (ffap-string-at-point-mode-alist): Support environment variable expansion in file names. diff --git a/lisp/ffap.el b/lisp/ffap.el --- a/lisp/ffap.el +++ b/lisp/ffap.el @@ -1007,1 +1007,1 @@ - (file "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:") + (file "--:\\\\$\\{\\}+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:") Which is slightly confusing since \\{ and \\} are number repetition things while {} are literal braces, but I guess Emacs will interpret them the same way here when they can't be repetition arguments in this form. So this means that the braces are now part of the file name, and since "{/etc}" doesn't exist, you get nil. This was intended to make ffap work better with files that have curly braces in the file names. I guess "{/etc}" could be a valid file name? But it's an odd one, and I'd guess that it would more commonly refer to /etc. So I think the right thing here is to revert this patch and just accept that we can't guess right on file names with weird characters in them. Opinions? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Wed Jun 25 02:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26190: 25.1; ffap problem with curly braces Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jul 2019 11:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26190 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: wyousef@fcih.net Cc: 26190@debbugs.gnu.org, Dmitry Gutov Received: via spool by 26190-submit@debbugs.gnu.org id=B26190.156414109215963 (code B ref 26190); Fri, 26 Jul 2019 11:39:01 +0000 Received: (at 26190) by debbugs.gnu.org; 26 Jul 2019 11:38:12 +0000 Received: from localhost ([127.0.0.1]:40986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqyY8-00049P-Dp for submit@debbugs.gnu.org; Fri, 26 Jul 2019 07:38:12 -0400 Received: from quimby.gnus.org ([80.91.231.51]:60324) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqyY6-00049H-OW for 26190@debbugs.gnu.org; Fri, 26 Jul 2019 07:38:11 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hqyY0-0005tm-H2; Fri, 26 Jul 2019 13:38:08 +0200 From: Lars Ingebrigtsen References: <87bmswi2s4.fsf@fcih.net> <87tvb9m3yd.fsf@mouse.gnus.org> Date: Fri, 26 Jul 2019 13:38:03 +0200 In-Reply-To: <87tvb9m3yd.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Fri, 26 Jul 2019 13:26:50 +0200") Message-ID: <87r26dm3fo.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: Lars Ingebrigtsen writes: > This was intended to make ffap work better with files that have curly > braces in the file names. I guess "{/etc}" could be a valid file name? > But it's an odd one, and I'd guess that it would more [...] 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 (-) Lars Ingebrigtsen writes: > This was intended to make ffap work better with files that have curly > braces in the file names. I guess "{/etc}" could be a valid file name? > But it's an odd one, and I'd guess that it would more commonly refer to > /etc. So I think the right thing here is to revert this patch and just > accept that we can't guess right on file names with weird characters in > them. On the other hand, we could just strip the "{" from the front and "}" from the end, which will restore the previous behaviour and possibly still work with other files? I've installed this on the trunk: diff --git a/lisp/ffap.el b/lisp/ffap.el index 47ceed47e3..33854a6c0d 100644 --- a/lisp/ffap.el +++ b/lisp/ffap.el @@ -1081,9 +1081,9 @@ ffap-string-at-point-mode-alist '( ;; The default, used when the `major-mode' is not found. ;; Slightly controversial decisions: - ;; * strip trailing "@" and ":" + ;; * strip trailing "@", ":" and enclosing "{"/"}". ;; * no commas (good for latex) - (file "--:\\\\${}+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:") + (file "--:\\\\${}+<>@-Z_[:alpha:]~*?" "{<@" "@>;.,!:}") ;; An url, or maybe an email/news message-id: (url "--:=&?$+@-Z_[:alpha:]~#,%;*()!'" "^[0-9a-zA-Z]" ":;.,!?") ;; Find a string that does *not* contain a colon: -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 26 07:39:10 2019 Received: (at control) by debbugs.gnu.org; 26 Jul 2019 11:39:10 +0000 Received: from localhost ([127.0.0.1]:40990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqyZ3-0004B1-OM for submit@debbugs.gnu.org; Fri, 26 Jul 2019 07:39:09 -0400 Received: from quimby.gnus.org ([80.91.231.51]:60360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqyZ2-0004As-9U for control@debbugs.gnu.org; Fri, 26 Jul 2019 07:39:08 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hqyYy-0005xv-LN for control@debbugs.gnu.org; Fri, 26 Jul 2019 13:39:06 +0200 Date: Fri, 26 Jul 2019 13:39:03 +0200 Message-Id: <87pnlxm3e0.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #26190 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: tags 26190 fixed close 26190 27.1 quit 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-Debbugs-Envelope-To: control 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 26190 fixed close 26190 27.1 quit