all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Chong Yidong" <cyd@stupidchicken.com>
Subject: filesets-add-buffer
Date: Fri, 1 Apr 2005 09:47:46 -0500 (EST)	[thread overview]
Message-ID: <4581.220.255.169.33.1112366866.squirrel@220.255.169.33> (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))

                 reply	other threads:[~2005-04-01 14:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4581.220.255.169.33.1112366866.squirrel@220.255.169.33 \
    --to=cyd@stupidchicken.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.