From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jim Meyering Newsgroups: gmane.emacs.devel Subject: ido.el-emitted trailing blank line vs write-hook Date: Sun, 04 May 2008 16:09:56 +0200 Message-ID: <87y76qjh3f.fsf@rho.meyering.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1209910217 8198 80.91.229.12 (4 May 2008 14:10:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 May 2008 14:10:17 +0000 (UTC) To: Kim F. Storm , Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 04 16:10:52 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JsevT-0007jW-RH for ged-emacs-devel@m.gmane.org; Sun, 04 May 2008 16:10:52 +0200 Original-Received: from localhost ([127.0.0.1]:32806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jseum-0008Vg-9A for ged-emacs-devel@m.gmane.org; Sun, 04 May 2008 10:10:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jseue-0008Q9-7J for emacs-devel@gnu.org; Sun, 04 May 2008 10:10:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jseud-0008Oo-Gn for emacs-devel@gnu.org; Sun, 04 May 2008 10:09:59 -0400 Original-Received: from [199.232.76.173] (port=56788 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jseud-0008OQ-4J for emacs-devel@gnu.org; Sun, 04 May 2008 10:09:59 -0400 Original-Received: from smtp3-g19.free.fr ([212.27.42.29]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jseud-0006c6-2G for emacs-devel@gnu.org; Sun, 04 May 2008 10:09:59 -0400 Original-Received: from smtp3-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp3-g19.free.fr (Postfix) with ESMTP id 33C7517B53B for ; Sun, 4 May 2008 16:09:57 +0200 (CEST) Original-Received: from mx.meyering.net (mx.meyering.net [82.230.74.64]) by smtp3-g19.free.fr (Postfix) with ESMTP id 1FEEB17B554 for ; Sun, 4 May 2008 16:09:57 +0200 (CEST) Original-Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id C06E82C519; Sun, 4 May 2008 16:09:56 +0200 (CEST) Original-Lines: 37 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:96436 Archived-At: 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 Date: Thu, 3 Apr 2008 16:40:49 +0200 Subject: [PATCH] edo: do not emit trailing newline Signed-off-by: Jim Meyering --- 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