瀏覽代碼

Merge branch 'maint'

Nicolas Goaziou 6 年之前
父節點
當前提交
b35bda573a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -9790,7 +9790,7 @@ Use TAB to complete link prefixes, then RET for type-specific completion support
 		       (read-string "Description: " initial-input)
 		     initial-input))))
 
-    (unless (string-match "\\S-" desc) (setq desc nil))
+    (unless (org-string-nw-p desc) (setq desc nil))
     (when remove (apply 'delete-region remove))
     (insert (org-make-link-string link desc))
     ;; Redisplay so as the new link has proper invisible characters.