* filesets-add-buffer
@ 2005-04-01 14:47 Chong Yidong
0 siblings, 0 replies; only message in thread
From: Chong Yidong @ 2005-04-01 14:47 UTC (permalink / raw)
Currently, the command filesets-add-buffer forces the user to supply the
name of an existing fileset. With this patch, if the user supplies a new
name, a new fileset is created. I think it is good to do this, because
currently there isn't any quick and easy method to create filesets -- you
have to do M-x filesets-edit and wade through the very confusing and
difficult-to-use Customize buffer for filesets-data.
*** emacs/lisp/filesets.el~ Fri Apr 1 21:55:54 2005
--- emacs/lisp/filesets.el Fri Apr 1 22:42:36 2005
***************
*** 1787,1794 ****
(name (or name
(completing-read
(format "Add '%s' to fileset: " buffer)
! filesets-data nil t)))
! (entry (assoc name filesets-data)))
(if entry
(let* ((files (filesets-entry-get-files entry))
(this (buffer-file-name buffer))
--- 1787,1803 ----
(name (or name
(completing-read
(format "Add '%s' to fileset: " buffer)
! filesets-data nil)))
! (entry (or (assoc name filesets-data)
! (when (y-or-n-p
! (format "Fileset %s does not exist. Create it?"
! name))
! (progn
! (add-to-list 'filesets-data (list name '(:files)))
! (message
! "Fileset %s created. Call `M-x filesets-save-config' to save."
! name)
! (car filesets-data))))))
(if entry
(let* ((files (filesets-entry-get-files entry))
(this (buffer-file-name buffer))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-01 14:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-01 14:47 filesets-add-buffer Chong Yidong
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.