mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Make denote--dir-in-denote-directory-p more robust
This is in response to a bug reported by Kevin Izevbigie in issue 705: <https://github.com/protesilaos/denote/issues/705>.
This commit is contained in:
parent
d7dab477a1
commit
21b1c81d1a
22
README.org
22
README.org
|
|
@ -7148,17 +7148,17 @@ Denote is meant to be a collective effort. Every bit of help matters.
|
|||
IceAsteroid, Jack Baty, Jay Rajput, Jean-Charles Bagneris, Jeff
|
||||
Valk, Jens Östlund, Jeremy Friesen, Jonathan Sahar, Johan Bolmsjö,
|
||||
Jonas Großekathöfer, Jousimies, Juanjo Presa, Julian Hoch, Kai von
|
||||
Fintel, Kaushal Modi, Kolmas, Lukas C. Bossert, M. Hadi Timachi,
|
||||
Maikol Solis, Mark Olson, Michael Jones, Mirko Hernandez, Morten
|
||||
Kjeldgaard, Niall Dooley, Nick Bell, Oliver Epper, Paul van Gelder,
|
||||
Peter Prevos, Peter Smith, Riccardo Giannitrapani, Rory Molinari,
|
||||
Samuel W. Flint, Sergio Rey, Suhail Singh, Shreyas Ragavan, Stefan
|
||||
Thesing, Summer Emacs, Sven Seebeck, Taoufik, TJ Stankus, Vick
|
||||
(VicZz), Viktor Haag, Vineet C. Kulkarni, Wade Mealing, Wilf, Yi
|
||||
Liu, Ypot, 82Kang, atanasj, azegas, babusri, bdillahu,
|
||||
coherentstate, doolio, duli, drcxd, elge70, elliottw, fingerknight,
|
||||
GuutBoy, hpgisler, hyperfocus1337,johkneisl, jtpavlock, juh,
|
||||
leafarbelm, mentalisttraceur, mjkalyan, oatmealm,
|
||||
Fintel, Kaushal Modi, Kevin Izevbigie, Kolmas, Lukas C. Bossert, M.
|
||||
Hadi Timachi, Maikol Solis, Mark Olson, Michael Jones, Mirko
|
||||
Hernandez, Morten Kjeldgaard, Niall Dooley, Nick Bell, Oliver Epper,
|
||||
Paul van Gelder, Peter Prevos, Peter Smith, Riccardo Giannitrapani,
|
||||
Rory Molinari, Samuel W. Flint, Sergio Rey, Suhail Singh, Shreyas
|
||||
Ragavan, Stefan Thesing, Summer Emacs, Sven Seebeck, Taoufik, TJ
|
||||
Stankus, Vick (VicZz), Viktor Haag, Vineet C. Kulkarni, Wade
|
||||
Mealing, Wilf, Yi Liu, Ypot, 82Kang, atanasj, azegas, babusri,
|
||||
bdillahu, coherentstate, doolio, duli, drcxd, elge70, elliottw,
|
||||
fingerknight, GuutBoy, hpgisler, hyperfocus1337,johkneisl,
|
||||
jtpavlock, juh, leafarbelm, mentalisttraceur, mjkalyan, oatmealm,
|
||||
Pratik-Mishra-4979, pRot0ta1p, rbenit68, relict007, sarcom-sar,
|
||||
sienic, skissue, sundar bp, wuzhihao, yetanotherfossman, zadca123
|
||||
|
||||
|
|
|
|||
|
|
@ -3107,7 +3107,8 @@ TEMPLATE, and SIGNATURE should be valid for note creation."
|
|||
"Return non-nil if DIRECTORY is in variable `denote-directory'."
|
||||
(seq-some
|
||||
(lambda (d)
|
||||
(string-prefix-p d (expand-file-name directory)))
|
||||
(or (string-prefix-p d (file-name-as-directory (expand-file-name directory)))
|
||||
(string-prefix-p (file-name-as-directory (expand-file-name directory)) d)))
|
||||
(denote-directories)))
|
||||
|
||||
(defun denote--valid-file-type (filetype)
|
||||
|
|
|
|||
Loading…
Reference in a new issue