GNU bug report logs - #2527
23.0.91; abbrev-defs formating

Previous Next

Package: emacs;

Reported by: Nikolaj Schumacher <me <at> nschum.de>

Date: Sun, 1 Mar 2009 22:00:05 UTC

Severity: minor

Tags: patch

Fixed in version 23.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Nikolaj Schumacher <me <at> nschum.de>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.91; abbrev-defs formating
Date: Sun, 01 Mar 2009 22:54:39 +0100
[Message part 1 (text/plain, inline)]
Just a cosmetic issue, but previously the abbrev_defs looked like 
this: 

(define-abbrev-table 'c-mode-abbrev-table '( ("else" "else" 
   c-electric-continued-statement 0) ("while" "while" 
   c-electric-continued-statement 0) ...

Now the first two lines are on one very long line.

(define-abbrev-table 'c-mode-abbrev-table '(    ("else" "else" ...
   ("while" "while" c-electric-continued-statement 0) ...


In GNU Emacs 23.0.91.3 (i386-apple-darwin9.6.0, NS 
apple-appkit-949.43) of 2009-02-28 on thursday Windowing system 
distributor `Apple', version 10.3.949 configured using `configure 
'--with-ns' '--without-x' 'CFLAGS=-arch i386 -O2''   regards, 
Nikolaj Schumacher 

[emacs-abbrev-formatting.patch (text/x-patch, inline)]
commit d398bd17c1cfb7c6362c22eb8298eae37ae92c72
Author: Nikolaj Schumacher <git <at> nschum.de>
Date:   Sun Mar 1 22:42:45 2009 +0100

    Fixed abbrev formatting.

diff --git a/lisp/abbrev.el b/lisp/abbrev.el
index 0e8b2cf..445f53d 100644
--- a/lisp/abbrev.el
+++ b/lisp/abbrev.el
@@ -885,7 +885,7 @@ Abbrevs marked as \"system abbrevs\" are omitted."
 	    (insert "\n\n"))
 	(insert "(define-abbrev-table '")
 	(prin1 name)
-	(insert " '(")
+	(insert " '(\n")
 	(mapc 'abbrev--write symbols)
 	(insert "    ))\n\n"))
       nil)))

This bug report was last modified 14 years and 141 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.