[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#52290: 28.0.90; Undocumented generalized variables
From: |
Michael Heerdegen |
Subject: |
bug#52290: 28.0.90; Undocumented generalized variables |
Date: |
Sun, 05 Dec 2021 03:25:12 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
> I think Stefan had a list of the worst ones... `point-max', for
> instance, is pretty egregious. Well, looking at that list -- most of
> are just the worst. 🤐
Ok, `point-max' is not so useful.
I only wanted to note that some generalized vars might be more useful
with `cl-letf' than with plain setf, you get some extra kinds of
excursions gratis (sometimes doesn't work as expected though). Example:
#+begin_src emacs-lisp
(cl-letf (((cons (point-min) (point-max))
(cons (line-beginning-position) (line-end-position))))
(recursive-edit))
#+end_src
Michael.
bug#52290: 28.0.90; Undocumented generalized variables, Phil Sainty, 2021/12/04
bug#52290: 28.0.90; Undocumented generalized variables, Richard Stallman, 2021/12/05