From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: ediff & No newline at end of file Date: Sat, 21 Jun 2008 10:32:42 +0200 Message-ID: <871w2r2no5.fsf@thievol.homelinux.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1214036850 13448 80.91.229.12 (21 Jun 2008 08:27:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Jun 2008 08:27:30 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: sandro dentella Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 21 10:28:14 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K9ySC-0000qc-W4 for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Jun 2008 10:28:13 +0200 Original-Received: from localhost ([127.0.0.1]:34382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9yRN-0001W0-JE for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Jun 2008 04:27:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K9yQy-0001T6-O1 for help-gnu-emacs@gnu.org; Sat, 21 Jun 2008 04:26:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K9yQw-0001QY-TE for help-gnu-emacs@gnu.org; Sat, 21 Jun 2008 04:26:55 -0400 Original-Received: from [199.232.76.173] (port=42918 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9yQw-0001QB-Ip for help-gnu-emacs@gnu.org; Sat, 21 Jun 2008 04:26:54 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.240]:45380) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K9yQw-0005Iy-1f for help-gnu-emacs@gnu.org; Sat, 21 Jun 2008 04:26:54 -0400 Original-Received: by an-out-0708.google.com with SMTP id c38so359799ana.84 for ; Sat, 21 Jun 2008 01:26:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=uNkdZHDXgsMYMtcPCfZFeJx6pUObMO9Yc0Hs/Ya/atg=; b=CuYFYWDvUvevafoVrsYfvHq/cOPwLmGhkKmc1RXtfQesP+PkEewpEnK/t8Ac02x0vu g021j+JeVOWbvrunrBgyCMgS5bAWlJnP72BZvQqrhqqyxa45qGFJf/0aO0KUMe82SwVz +o/dlplw4RSezhK0e61mx9Ln+VWVDx/8qrcyU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=NbVCoJ+T2cKKb4vdEh5XXQohHzsgO/06erMPb2GAoph6J9L6mjcaOphdd+aH1T8k79 hyAOX1k8h9Lf6VwKuNHBrX6RXdzj6ctql7597SF2YylTX8HDqlFu0QP2cO1pTSDOep1H kb0x+zGyDuy8SUcvR7oY3RuBR4e34ZV5nGHfk= Original-Received: by 10.100.241.17 with SMTP id o17mr7531681anh.69.1214036813236; Sat, 21 Jun 2008 01:26:53 -0700 (PDT) Original-Received: from thievol.homelinux.org ( [77.197.77.55]) by mx.google.com with ESMTPS id 33sm3827170wra.37.2008.06.21.01.26.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 21 Jun 2008 01:26:52 -0700 (PDT) In-Reply-To: (sandro dentella's message of "Sat, 21 Jun 2008 00:28:00 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55018 Archived-At: sandro dentella writes: > On 21 Giu, 07:03, Thierry Volpiatto > wrote: >> Hi, >> that will not correct your problem but help in the future. >> >> ,---- >> | ;; Add newline at end of files >> | (setq require-final-newline t) >> `---- >> Now when you edit a file and you save it it will have a newline at end. > > > I already have it, the fact is that I use if with files generated by > others as well... You can easily write a small function that take as args file1 and file2 and modify these files before calling ediff. something like: ,---- | (find-file file1) | (goto-char (point-max)) | (newline) | (save-buffer) | (kill-buffer (current-buffer)) `---- The same for file2 and then call ediff. Should work. -- A + Thierry Pub key: http://pgp.mit.edu