[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emacs-wiki-discuss] Newline in the planner id file
From: |
fouvry+emacs-wiki |
Subject: |
Re: [emacs-wiki-discuss] Newline in the planner id file |
Date: |
Wed, 21 Apr 2004 11:17:11 +0200 (CEST) |
,-- On Tue, 20 Apr, Win Treese wrote:
|
|
| A very minor change:
|
| If one has require-final-newline set to 'ask, then Emacs prompts for a
| newline every time the planner ID file gets saved. The patch below adds
| a newline to the file on every save.
|
| Win Treese
| address@hidden
|
| --- orig/planner-id.el
| +++ mod/planner-id.el
| @@ -92,7 +92,7 @@
| (lambda (item)
| (insert "(\"" (car item) "\" . " (number-to-string (cdr item)) ")"))
| planner-id-values)
| - (insert ")")
| + (insert ")\n")
| (write-file planner-id-tracking-file)))
|
| (defun planner-id-make-global-id (identifier)
|
Maybe it's better to set require-final-newline in this function
(temporarily) to `t'? Seems cleaner.
F