* Minor Auto-Copyright Update Prob @ 2006-02-04 23:20 gamename 2006-02-05 0:49 ` Stefan Monnier 0 siblings, 1 reply; 5+ messages in thread From: gamename @ 2006-02-04 23:20 UTC (permalink / raw) Hi I have this in my .emacs file to auto-update copyright info (add-hook 'after-save-hook 'copyright-update) it works great except that the string "Update copyright?" stays in the mini buffer after the save completes. How do I get the minibuffer to clear auto-magically and go back to the normal "wrote <filename>" string? TIA, -T ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Minor Auto-Copyright Update Prob 2006-02-04 23:20 Minor Auto-Copyright Update Prob gamename @ 2006-02-05 0:49 ` Stefan Monnier 2006-02-05 2:30 ` gamename 0 siblings, 1 reply; 5+ messages in thread From: Stefan Monnier @ 2006-02-05 0:49 UTC (permalink / raw) > (add-hook 'after-save-hook 'copyright-update) This means that the update takes place *after* saving. Kind of late, don't you think? Where did you get the idea to use after-save-hook? Stefan ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Minor Auto-Copyright Update Prob 2006-02-05 0:49 ` Stefan Monnier @ 2006-02-05 2:30 ` gamename 2006-02-05 14:07 ` Stefan Monnier 0 siblings, 1 reply; 5+ messages in thread From: gamename @ 2006-02-05 2:30 UTC (permalink / raw) Hi Stefan, Good catch. I copy/pasted from here: (add-hook 'after-save-hook 'backup-each-save) ...obviously w/o thinking it through. What would you suggest I do to get this functionality? TIA ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Minor Auto-Copyright Update Prob 2006-02-05 2:30 ` gamename @ 2006-02-05 14:07 ` Stefan Monnier 2006-02-05 19:08 ` gamename 0 siblings, 1 reply; 5+ messages in thread From: Stefan Monnier @ 2006-02-05 14:07 UTC (permalink / raw) > Good catch. I copy/pasted from here: > (add-hook 'after-save-hook 'backup-each-save) > ...obviously w/o thinking it through. > What would you suggest I do to get this functionality? How 'bout reading the doc? They suggest (add-hook 'write-file-hooks 'copyright-update) or (add-hook 'before-save-hook 'copyright-update) depending on whether or not your Emacs is recent enough to have before-save-hook. Stefan ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Minor Auto-Copyright Update Prob 2006-02-05 14:07 ` Stefan Monnier @ 2006-02-05 19:08 ` gamename 0 siblings, 0 replies; 5+ messages in thread From: gamename @ 2006-02-05 19:08 UTC (permalink / raw) Thanks Stefan :) XOXO ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-02-05 19:08 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-02-04 23:20 Minor Auto-Copyright Update Prob gamename 2006-02-05 0:49 ` Stefan Monnier 2006-02-05 2:30 ` gamename 2006-02-05 14:07 ` Stefan Monnier 2006-02-05 19:08 ` gamename
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.