help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Removing line and column number settings from some buffers


From: Drew Adams
Subject: RE: Removing line and column number settings from some buffers
Date: Sat, 5 Dec 2020 10:16:34 -0800 (PST)

> Please help with `toto' in this example.
> 
> On the other hand, if you want to be able to go either
> forward or backward then you might want to use a ring
> (as defined in standard library ring.el):
> 
> (defvar ring (ring-convert-sequence-to-ring '(nil t always)))
          ^^^^
> (defvar current nil)
> 
> (defun next ()
>   (interactive)
>   (setq current  (ring-next toto current))
                              ^^^^
>   (message "NOW: %s" current))
> 
> (defun previous ()
>   (interactive)
>   (setq current  (ring-previous toto current))
                                  ^^^^
>   (message "NOW: %s" current))

Sorry, typo.  Variable `toto' should be variable `ring'.
(Or vice versa - there should be only one ring variable.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]