[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ido.el-emitted trailing blank line vs write-hook
From: |
Jim Meyering |
Subject: |
ido.el-emitted trailing blank line vs write-hook |
Date: |
Sun, 04 May 2008 16:09:56 +0200 |
Hi,
I've switched(sic ;-) to your ido.el package, and do like it (thanks!).
However, I find it annoying that my white-space removing write-hook
is nagging me about an ido-internal file.
The attached patch solves the problem for me, but I'll bet there's
a way to make it so a user-supplied write hook won't even consider
such a file.
Jim
>From 3685ae3ab73da79bfaf774478f1d32feb66ec3cd Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Thu, 3 Apr 2008 16:40:49 +0200
Subject: [PATCH] edo: do not emit trailing newline
Signed-off-by: Jim Meyering <address@hidden>
---
lisp/ido.el | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/lisp/ido.el b/lisp/ido.el
index 314f495..090dca0 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -1317,7 +1317,6 @@ Value is an integer which is number of chars to right of
prompt.")
(if (listp ido-unc-hosts-cache)
(ido-pp 'ido-unc-hosts-cache)
(insert "\n;; ----- ido-unc-hosts-cache -----\nt\n"))
- (insert "\n")
(write-file ido-save-directory-list-file nil))
(kill-buffer buf)))))
--
1.5.5.1.117.ga349
- ido.el-emitted trailing blank line vs write-hook,
Jim Meyering <=