From 5fd759c06bf5b80accea8714038473719e8a43b2 Mon Sep 17 00:00:00 2001 From: Jason Blevins Date: Fri, 4 Sep 2015 09:56:01 -0400 Subject: [PATCH] Disable wiki link search in parent directories by default See https://github.com/jrblevin/markdown-mode/issues/17 --- markdown-mode.el | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/markdown-mode.el b/markdown-mode.el index e22ac79a..e61ef781 100644 --- a/markdown-mode.el +++ b/markdown-mode.el @@ -594,10 +594,12 @@ ;; Aliased or piped wiki links of the form `[[link text|PageName]]` ;; are also supported. Since some wikis reverse these components, set ;; `markdown-wiki-link-alias-first' to nil to treat them as -;; `[[PageName|link text]]`. By default, Markdown Mode searches for -;; target files in the current directory and then sequentially in parent -;; directories (like Ikiwiki). Parent directory search can be disabled -;; by setting `markdown-wiki-link-search-parent-directories' to nil. +;; `[[PageName|link text]]`. By default, Markdown Mode only searches +;; for target files in the current directory. Sequential parent +;; directory search (as in [Ikiwiki][]) can be enabled by setting +;; `markdown-wiki-link-search-parent-directories' to a non-nil value. +;; +;; [Ikiwiki]: https://ikiwiki.info ;; ;; [SmartyPants][] support is possible by customizing `markdown-command'. ;; If you install `SmartyPants.pl` at, say, `/usr/local/bin/smartypants`, @@ -893,7 +895,7 @@ Otherwise, they will be treated as [[PageName|alias text]]." :group 'markdown :type 'boolean) -(defcustom markdown-wiki-link-search-parent-directories t +(defcustom markdown-wiki-link-search-parent-directories nil "When non-nil, search for wiki link targets in parent directories. This is the default search behavior of Ikiwiki." :group 'markdown