Opened 17 years ago
Closed 16 years ago
#88 closed defect (worksforme)
Buffer invisibility spec bug with Emacs 22
Reported by: | David Aspinall | Owned by: | David Aspinall |
---|---|---|---|
Priority: | major | Milestone: | PG-Emacs-3.7 |
Component: | 2:pg-emacs | Keywords: | |
Cc: |
Description
[Reported by Michaël Cadilhac]
I'm an Emacs22 user of Proof General, and I experienced some bugs with
buffer-invisibility-spec
on several occasions.
In GNU Emacs 22.0.93.6 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2007-02-09 on mistral X server distributor `The X.Org Foundation', version 11.0.70101000 configured using `configure '--prefix=/usr' 'CFLAGS=-O0 -ggdb''
The problem arose when buffer-invisibility-spec was of the form
((smthg . t) t)
.
Note, I don't know if the patch breaks something with XEmacs. Maybe the following functions aren't defined:
(defun add-to-invisibility-spec (element) "Add ELEMENT to `buffer-invisibility-spec'. See documentation for `buffer-invisibility-spec' for the kind of elements that can be added." (if (eq buffer-invisibility-spec t) (setq buffer-invisibility-spec (list t))) (setq buffer-invisibility-spec (cons element buffer-invisibility-spec))) (defun remove-from-invisibility-spec (element) "Remove ELEMENT from `buffer-invisibility-spec'." (if (consp buffer-invisibility-spec) (setq buffer-invisibility-spec (delete element buffer-invisibility-spec))))
Attachments (1)
Change History (2)
Changed 17 years ago by
Attachment: | invisibility.patch added |
---|
comment:1 Changed 16 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Problems not seen with released and supported Emacs version 22.1.1, so closing this for now. NB: changes to this code has been made to fix #129.