Łukasz Stelmach <lukasz.stelm...@iem.pw.edu.pl> writes: > Yes it was. I forgot to pull. However the part with appending "/" to b > might still be valuable at least for building xm regexp. If > :base-directory is set to "~/dydaktyka" (my example) then xm becomes > "^/home/steelman/dydaktyka[^/]+\.\(org\)" which not necessarily makes > sense. It may go like this > > (xm (concat "^" b > (when (string-match "^[/]$" b) "/") > (if r ".+" "[^/]+") > "\\.\\(" x "\\)$")))
:base-directory now allows a directory name with no ending slash. I did this in a slightly different way than the one you suggest: ,---- | (let* ((r (plist-get (cdr prj) :recursive)) | - (b (expand-file-name (plist-get (cdr prj) :base-directory))) | + (b (expand-file-name (file-name-as-directory | + (plist-get (cdr prj) :base-directory)))) | (x (or (plist-get (cdr prj) :base-extension) "org")) `---- Thanks! -- Bastien _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode