non-existing fileset, create a new fileset.
+2005-04-16 Chong Yidong <cyd@stupidchicken.com>
+
+ * filesets.el (filesets-add-buffer): If user supplies a name of a
+ non-existing fileset, create a new fileset.
+
2005-04-16 Carsten Dominik <dominik@science.uva.nl>
* textmodes/org.el (org-up-heading-all): Fixed bug with
(name (or name
(completing-read
(format "Add '%s' to fileset: " buffer)
- filesets-data nil t)))
- (entry (assoc name filesets-data)))
+ 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))