unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* vis-mode
@ 2003-06-16  2:16 Luc Teirlinck
  0 siblings, 0 replies; only message in thread
From: Luc Teirlinck @ 2003-06-16  2:16 UTC (permalink / raw)


I have started to rewrite info.texi.  (I had to familiarize myself
with texinfo first, as I had never used it before.)

I would like to check in vis-mode, discussed before, with all changes
suggested by Richard.  I will not give it any binding, whether in info
or elsewhere.  I would want to know in which file I am supposed to put
it, however.


===File ~/vis-mode.el=======================================
(make-variable-buffer-local 'saved-buffer-invisibility-spec)

(defvar saved-buffer-invisibility-spec nil
  "Saved value of buffer-invisibility-spec when `vis-mode' is on.")

(define-minor-mode vis-mode
  "Toggle vis-mode.
With argument ARG turn vis-mode on iff ARG is positive..

Enabling vis-mode sets `buffer-invisibility-spec' to nil, after
saving the old value in the variable
`saved-buffer-invisibility-spec', making all invisible text in
the buffer visible.

Disabling vis-mode restores the saved value of
`buffer-invisibility-spec'."
  :lighter " Vis"
  (if vis-mode
      (progn
	(setq saved-buffer-invisibility-spec buffer-invisibility-spec
	      buffer-invisibility-spec nil))
    (setq buffer-invisibility-spec saved-buffer-invisibility-spec
	  saved-buffer-invisibility-spec nil)))

  
============================================================

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-16  2:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-16  2:16 vis-mode Luc Teirlinck

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).