0
0
My problem is that I want to be able to navigate to directories like:
"..\\A\\B\\a.blah"
Currently, when i use the ffap command, it works for:
"../A/B/a.blah"
"..//A//B//a.blah"
"..\A\B\a.blah"
but it doesn't work for
"..\\A\\B\\a.blah"
now I found a mailing list relating to this (here) but this I think solves it only for the backslash. Do I have to add something to my ffap-string-at-point variable?
Here's the value of it currently:
ffap-string-at-point-mode-alist is a variable defined in ‘ffap.el’.
Its value is ((file "--:\\\\${}+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
(url "--:=&?$+@-Z_[:alpha:]~#,%;*()!'" "^[0-9a-zA-Z]" ":;.,!?")
(nocolon "--9$+<>@-Z_[:alpha:]~" "<@" "@>;.,!?")
(machine "-[:alnum:]." "" ".")
(math-mode ",-:$+<>@-Z_[:lower:]~`" "<" "@>;.,!?`:")
(latex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
(tex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:"))
This variable may be risky if used as a file-local variable.
Documentation:
Alist of (MODE CHARS BEG END), where MODE is a symbol,
possibly a major-mode name, or one of the symbols
‘file’, ‘url’, ‘machine’, and ‘nocolon’.
Function ‘ffap-string-at-point’ uses the data fields as follows:
1. find a maximal string of CHARS around point,
2. strip BEG chars before point from the beginning,
3. strip END chars after point from the end.
The arguments CHARS, BEG and END are handled as described in
‘skip-chars-forward’.
Have you tried using exactly the same
– harrymc – 2019-05-23T05:46:04.233file
element as is proposed in the link, which is said to work?Have you abandoned your post? – harrymc – 2019-05-27T06:36:12.550
not yet! Just been busy the last few days – Nick – 2019-05-27T09:09:50.057
im not sure how to find the ffap-string-at-point variable, i've tried using describe-variable, but it's not in scope, not can I find the ffap.el file in my .emacs.d – Nick – 2019-05-27T10:52:02.340
You could search for
ffap.el
over the whole disk. – harrymc – 2019-05-27T11:24:14.603i tried this: sudo find / -name ffap /usr/lib/libreoffice/program/types/offapi.rdb /usr/share/emacs/25.1/lisp/ffap.elc /usr/share/emacs/25.1/lisp/ffap.el.gz – Nick – 2019-05-27T11:29:13.267
however, it looks like ffap.elc is compiled in some form – Nick – 2019-05-27T11:29:46.890
ah looks like it's in the ffap.el.gz file – Nick – 2019-05-27T11:31:50.907
so i changed the ffap.el.gz file to the one in the link, which has the problem worse. Now all backslashes don't work in ffap :( – Nick – 2019-05-27T11:42:31.903