emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#45748: closed (28.0.50; fit-frame-to-buffer ignores leading spaces)


From: GNU bug Tracking System
Subject: bug#45748: closed (28.0.50; fit-frame-to-buffer ignores leading spaces)
Date: Mon, 18 Jan 2021 17:05:02 +0000

Your message dated Mon, 18 Jan 2021 19:04:13 +0200
with message-id <83bldm89de.fsf@gnu.org>
and subject line Re: [PATCH] * test/src/xdisp-tests.el Fix tests to work in 
batch mode
has caused the debbugs.gnu.org bug report #45748,
regarding 28.0.50; fit-frame-to-buffer ignores leading spaces
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
45748: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=45748
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 28.0.50; fit-frame-to-buffer ignores leading spaces Date: Sat, 9 Jan 2021 09:43:27 -0600
>From emacs -Q:

Create a buffer with only the following text and no trailing newline
(note the leading space):

 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

M-x fit-frame-to-buffer

The frame will be resized to the width of the X's, not including the
leading space, causing the line to wrap.

If the leading space is removed, it works as expected.

Any number of leading spaces are ignored, as are trailing spaces.

This has practical applications with company-posframe, which uses
sometimes one line child windows to show completion options and has
leading and trailing spaces around each completion.

In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin19.6.0, NS
appkit-1894.60 Version 10.15.7 (Build 19H114))
 of 2021-01-08 built on aaron-sub.local
Repository revision: d1c5e7afb1ad9890d925e8c1a5392b701a754dd5
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1894
System Description:  Mac OS X 10.15.7


Aaron



--- End Message ---
--- Begin Message --- Subject: Re: [PATCH] * test/src/xdisp-tests.el Fix tests to work in batch mode Date: Mon, 18 Jan 2021 19:04:13 +0200
> From: Aaron Jensen <aaronjensen@gmail.com>
> Date: Sat, 16 Jan 2021 12:28:46 -0600
> Cc: contovob@tcd.ie, eliz@gnu.org, Aaron Jensen <aaronjensen@gmail.com>
> 
> (xdisp-tests--window-text-pixel-size)
> (xdisp-tests--window-text-pixel-size-leading-space)
> (xdisp-tests--window-text-pixel-size-trailing-space): Fix tests

Thanks, installed, and closing the bug.


--- End Message ---

reply via email to

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