mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-12-24 10:38:41 +00:00
Silence compiler about called-interactively
This commit is contained in:
parent
88149c2390
commit
0c8557b401
@ -1,3 +1,11 @@
|
||||
2010-04-18 Carsten Dominik <carsten.dominik@gmail.com>
|
||||
|
||||
* org-freemind.el (org-freemind-from-org-mode-node)
|
||||
(org-freemind-from-org-mode, )
|
||||
(org-freemind-from-org-sparse-tree, org-freemind-to-org-mode): Use
|
||||
interactive-p instead of called-interactively, because this is
|
||||
backward compatible with older Emacsen I still support..
|
||||
|
||||
2010-04-16 Carsten Dominik <carsten.dominik@gmail.com>
|
||||
|
||||
* org-exp.el (org-export-define-heading-targets): Fix bug in
|
||||
|
@ -808,13 +808,13 @@ Otherwise give an error say the file exists."
|
||||
".mm"))
|
||||
(mm-file (read-file-name "Output FreeMind file: " nil nil nil default-mm-file)))
|
||||
(list line mm-file))))
|
||||
(when (org-freemind-check-overwrite mm-file (called-interactively-p))
|
||||
(when (org-freemind-check-overwrite mm-file (interactive-p))
|
||||
(let ((org-buffer (current-buffer))
|
||||
(mm-buffer (find-file-noselect mm-file)))
|
||||
(org-freemind-write-mm-buffer org-buffer mm-buffer node-line)
|
||||
(with-current-buffer mm-buffer
|
||||
(basic-save-buffer)
|
||||
(when (called-interactively-p)
|
||||
(when (interactive-p)
|
||||
(switch-to-buffer-other-window mm-buffer)
|
||||
(when (y-or-n-p "Show in FreeMind? ")
|
||||
(org-freemind-show buffer-file-name)))))))
|
||||
@ -832,13 +832,13 @@ Otherwise give an error say the file exists."
|
||||
".mm"))
|
||||
(mm-file (read-file-name "Output FreeMind file: " nil nil nil default-mm-file)))
|
||||
(list org-file mm-file)))
|
||||
(when (org-freemind-check-overwrite mm-file (called-interactively-p))
|
||||
(when (org-freemind-check-overwrite mm-file (interactive-p))
|
||||
(let ((org-buffer (if org-file (find-file-noselect org-file) (current-buffer)))
|
||||
(mm-buffer (find-file-noselect mm-file)))
|
||||
(org-freemind-write-mm-buffer org-buffer mm-buffer nil)
|
||||
(with-current-buffer mm-buffer
|
||||
(basic-save-buffer)
|
||||
(when (called-interactively-p)
|
||||
(when (interactive-p)
|
||||
(switch-to-buffer-other-window mm-buffer)
|
||||
(when (y-or-n-p "Show in FreeMind? ")
|
||||
(org-freemind-show buffer-file-name)))))))
|
||||
@ -855,7 +855,7 @@ Otherwise give an error say the file exists."
|
||||
"-sparse.mm"))
|
||||
(mm-file (read-file-name "Output FreeMind file: " nil nil nil default-mm-file)))
|
||||
(list (current-buffer) mm-file)))
|
||||
(when (org-freemind-check-overwrite mm-file (called-interactively-p))
|
||||
(when (org-freemind-check-overwrite mm-file (interactive-p))
|
||||
(let (org-buffer
|
||||
(mm-buffer (find-file-noselect mm-file)))
|
||||
(save-window-excursion
|
||||
@ -864,7 +864,7 @@ Otherwise give an error say the file exists."
|
||||
(org-freemind-write-mm-buffer org-buffer mm-buffer nil)
|
||||
(with-current-buffer mm-buffer
|
||||
(basic-save-buffer)
|
||||
(when (called-interactively-p)
|
||||
(when (interactive-p)
|
||||
(switch-to-buffer-other-window mm-buffer)
|
||||
(when (y-or-n-p "Show in FreeMind? ")
|
||||
(org-freemind-show buffer-file-name)))))))
|
||||
@ -1091,7 +1091,7 @@ PATH should be a list of steps, where each step has the form
|
||||
(default-org-file (concat (file-name-nondirectory mm-file) ".org"))
|
||||
(org-file (read-file-name "Output org-mode file: " nil nil nil default-org-file)))
|
||||
(list mm-file org-file))))
|
||||
(when (org-freemind-check-overwrite org-file (called-interactively-p))
|
||||
(when (org-freemind-check-overwrite org-file (interactive-p))
|
||||
(let ((mm-buffer (find-file-noselect mm-file))
|
||||
(org-buffer (find-file-noselect org-file)))
|
||||
(with-current-buffer mm-buffer
|
||||
|
Loading…
Reference in New Issue
Block a user