Przeglądaj źródła

Merge branch 'maint'

Nicolas Goaziou 7 lat temu
rodzic
commit
36578fda46
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      lisp/org.el

+ 3 - 3
lisp/org.el

@@ -19038,9 +19038,9 @@ boundaries."
 	    ;; "file:" links.  Also check link abbreviations since
 	    ;; some might expand to "file" links.
 	    (file-types-re (format "[][]\\[\\(?:file\\|[./~]%s\\)"
-				   (and link-abbrevs
-					(format "\\|\\(?:%s:\\)"
-						(regexp-opt link-abbrevs))))))
+				   (if (not link-abbrevs) ""
+				     (format "\\|\\(?:%s:\\)"
+					     (regexp-opt link-abbrevs))))))
        (while (re-search-forward file-types-re end t)
 	 (let ((link (save-match-data (org-element-context))))
 	   ;; Check if we're at an inline image, i.e., an image file