emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org-remark 7ab876fd7d: fix:#23 FILENAME passed can be n


From: ELPA Syncer
Subject: [elpa] externals/org-remark 7ab876fd7d: fix:#23 FILENAME passed can be nil
Date: Sun, 27 Feb 2022 10:57:35 -0500 (EST)

branch: externals/org-remark
commit 7ab876fd7d6c9574f46114078a16feb259310101
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>

    fix:#23 FILENAME passed can be nil
---
 org-remark.el | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/org-remark.el b/org-remark.el
index 575fc6ef46..5ae2860c51 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -6,7 +6,7 @@
 ;; URL: https://github.com/nobiot/org-remark
 ;; Version: 1.0.2
 ;; Created: 22 December 2020
-;; Last modified: 26 February 2022
+;; Last modified: 27 February 2022
 ;; Package-Requires: ((emacs "27.1") (org "9.4"))
 ;; Keywords: org-mode, annotation, writing, note-taking, marginal-notes
 
@@ -1079,10 +1079,13 @@ Returns the standardized filename.
 
 The current buffer is assumed to be visiting the source file.
 
-FILENAME should be an absolute file name of the source file."
+FILENAME should be an absolute file name of the source file.
+
+If FILENAME is nil, return nil."
   ;; Get the default-directory of the notes
-  (with-current-buffer (find-file-noselect (org-remark-notes-get-file-name))
-    (funcall org-remark-source-file-name filename)))
+  (when filename ; fix #23
+    (with-current-buffer (find-file-noselect (org-remark-notes-get-file-name))
+      (funcall org-remark-source-file-name filename))))
 
 (defun org-remark-region-or-word ()
   "Return beg and end of the active region or of the word at point.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]