all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Saving info from inside of error handling
@ 2008-03-28 16:38 B. T. Raven
  2008-03-29 15:09 ` Kevin Rodgers
       [not found] ` <mailman.9576.1206803413.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: B. T. Raven @ 2008-03-28 16:38 UTC (permalink / raw)
  To: help-gnu-emacs

I have the following inside a loop where filename is changed and I want 
to build a string or list of filenames for which the user has answered 
that the existing file should be overwritten. Can I test for y-or-n-p 
return result (write-file defun in files.el) and have the program report 
in which places the files have been replaced with the contents of the 
current buffer?

   (condition-case nil
                     (write-file filename t)
                   (error nil))

Thanks,

Ed


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-30 13:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-28 16:38 Saving info from inside of error handling B. T. Raven
2008-03-29 15:09 ` Kevin Rodgers
     [not found] ` <mailman.9576.1206803413.18990.help-gnu-emacs@gnu.org>
2008-03-30 13:03   ` B. T. Raven

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.