GNU bug report logs -
#57837
29.0.50; fit-window-to-buffer should reposition the buffer
Previous Next
Reported by: sds <at> gnu.org
Date: Thu, 15 Sep 2022 17:32:01 UTC
Severity: normal
Found in version 29.0.50
Full log
Message #29 received at 57837 <at> debbugs.gnu.org (full text, mbox):
> * Eli Zaretskii <ryvm <at> tah.bet> [2022-09-15 22:07:15 +0300]:
>
>> From: Sam Steingold <sds <at> gnu.org>
>> Date: Thu, 15 Sep 2022 14:55:16 -0400
>> Cc: 57837 <at> debbugs.gnu.org
>>
>> > >> --8<---------------cut here---------------start------------->8---
>> > >> (and (pos-visible-in-window-p (point-min))
>> > >> (pos-visible-in-window-p (point-max)))
>> > >> --8<---------------cut here---------------end--------------->8---
>>
>> replacing `poing-min` and `point-max` with beginning-of-text and
>> end-of-text, of course...
>
> What are beginning-of-text and end-of-text? I don't find such
> functions in Emacs.
I meant something like this:
--8<---------------cut here---------------start------------->8---
(defun beginning-of-text ()
(save-excursion
(goto-char (point-min))
(1- (re-search-forward "[[:graph:]]" nil t))))
--8<---------------cut here---------------end--------------->8---
--
Sam Steingold (https://aphar.dreamwidth.org/) on darwin Ns 10.3.2113
https://lastingimpactpsychology.com https://steingoldpsychology.com
https://ij.org/ https://jij.org https://thereligionofpeace.com
What garlic is to food, insanity is to art.
This bug report was last modified 2 years and 325 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.