🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87391

[19.27] Font lock / Abbrevs conflict

#87391
From: tkld
Date: Thu, 29 Sep 1994 08:40
32 lines
1614 bytes
In GNU Emacs 19.27.1 (sparc-sun-sunos4.1.3, X toolkit) of Tue Sep 20 1994 on scott

If you define an abbrev in a font locked buffer, the abbrev table gets
face information stored in it. read-abbrev-table barfs when it tries to
re-read ~/.abbrev_defs

Recipe:

emacs -q
C-x C-f foo.el RET
M-x font-lock-mode RET
(defun foo ()
  "Hi C-x a i g Hello RET

This adds a new global abbrev Hi-->Hello with face information.

To see the mangled abbrev table:
M-x edit-abbrevs

....
(global-abbrev-table)

#("hi" 0 2 (face underline)) 1 "Hello"
...

Typing C-c C-c now results in an Args out of range error.

-- 
|Kevin.Davidson@edinburgh.ac.uk +-+ Centre for Cognitive Science/HCRC,        |
|tkld@cogsci.ed.ac.uk           | | University of Edinburgh,                  |
|+44 131 650 6879        .oOo.  | | 2 Buccleuch Place, EH8 9LW.        .oOo.  |
`-------------------------------' `-------------------------------------------'
Technical Details
Message-ID: <14149.9409290836@scott.cogsci.ed.ac.uk>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!cogsci.edinburgh.ac.UK!tkld

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,b1723ecf3a1f78be,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-09-29 02:02:56 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!cogsci.edinburgh.ac.UK!tkld
From: tkld@cogsci.edinburgh.ac.UK
Newsgroups: gnu.emacs.bug
Subject: [19.27] Font lock / Abbrevs conflict
Date: 29 Sep 1994 04:40:57 -0400
Organization: GNUs Not Usenet
Lines: 32
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <14149.9409290836@scott.cogsci.ed.ac.uk>