Isaac writes:
Similar to this previous post, I am trying to file orgmode items
to files/buffers currently opened. Being elisp rookie, I tried
and came up with the following:
(defun opened-buffer-files ()
"Return the list of files currently opened in emacs" (delq nil
(mapcar (function buffer-file-name) (buffer-list))) )
Perhaps you should return instead only the org mode files that are
opened, something like this:
#+BEGIN_SRC emacs-lisp
(delq nil
(mapcar (lambda (x)
(if (and (buffer-file-name x)
(string-match "\\.org$"
(buffer-file-name x)))
(buffer-file-name x)))
(buffer-list)))
#+END_SRC
Best,
--
Jorge.