* bug#22723: 25.0.91; temp-buffer-resize-mode disables shrink-window
@ 2016-02-17 19:46 Eli Zaretskii
2016-02-18 10:51 ` martin rudalics
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2016-02-17 19:46 UTC (permalink / raw)
To: 22723
To reproduce:
emacs -Q
M-x temp-buffer-resize-mode RET
C-h f shrink-window RET
M-x shrink-window RET
Result: nothing happens.
I realize that this is the result of temp-buffer-resize-mode taking
control on the dimensions of the *Help* window, but for me this is an
unintended consequence: I did want *Help* buffer resize itself when it
displays a new topic, but I certainly didn't expect to lose the
ability to resize my other windows. Moreover, doing nothing silently,
without any error message, sounds sub-optimal UI to me.
("Fixing" this is easy: just switch to the window displaying *Help*
and invoke shrink-window or enlarge-window from there -- from that
moment on the resizing commands will work from other windows as well.)
If the issue is not some unintended bug, then how about overriding
this behavior when the commands are invoked interactively? Failing
even that, can we at least have a prefix argument to override that
explicitly?
Thanks.
In GNU Emacs 25.0.91.18 (i686-pc-mingw32)
of 2016-02-17 built on HOME-C4E4A596F7
Repository revision: 2abcb06cab03cf9040348146fcc0e3e93ae24a58
Windowing system distributor 'Microsoft Corp.', version 5.1.2600
Configured using:
'configure --prefix=/d/usr --enable-checking=yes,glyphs --with-wide-int
--with-modules 'CFLAGS=-O0 -gdwarf-4 -g3''
Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS MODULES
Important settings:
value of $LANG: ENU
locale-coding-system: cp1255
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
temp-buffer-resize-mode: t
line-number-mode: t
transient-mark-mode: t
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Temp-Buffer-Resize mode enabled
Type C-x 1 to delete the help window.
Scanning for dabbrevs...done
user-error: No dynamic expansion for ‘temp-buf’ found
Load-path shadows:
None found.
Features:
(shadow sort mail-extr dabbrev emacsbug message dired format-spec rfc822
mml mml-sec epg epg-config gnus-util mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-extra help-fns
help-mode easymenu cl-loaddefs pcase cl-lib cus-start cus-load time-date
mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
w32notify w32 multi-tty make-network-process emacs)
Memory information:
((conses 16 100797 6501)
(symbols 56 21615 0)
(miscs 48 40 107)
(strings 16 19377 5571)
(string-bytes 1 468866)
(vectors 16 12474)
(vector-slots 8 423274 4208)
(floats 8 170 84)
(intervals 40 290 143)
(buffers 856 12))
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#22723: 25.0.91; temp-buffer-resize-mode disables shrink-window
2016-02-17 19:46 bug#22723: 25.0.91; temp-buffer-resize-mode disables shrink-window Eli Zaretskii
@ 2016-02-18 10:51 ` martin rudalics
2016-02-19 11:58 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: martin rudalics @ 2016-02-18 10:51 UTC (permalink / raw)
To: Eli Zaretskii, 22723
> To reproduce:
>
> emacs -Q
> M-x temp-buffer-resize-mode RET
> C-h f shrink-window RET
> M-x shrink-window RET
>
> Result: nothing happens.
>
> I realize that this is the result of temp-buffer-resize-mode taking
> control on the dimensions of the *Help* window, but for me this is an
> unintended consequence: I did want *Help* buffer resize itself when it
> displays a new topic, but I certainly didn't expect to lose the
> ability to resize my other windows. Moreover, doing nothing silently,
> without any error message, sounds sub-optimal UI to me.
>
> ("Fixing" this is easy: just switch to the window displaying *Help*
> and invoke shrink-window or enlarge-window from there -- from that
> moment on the resizing commands will work from other windows as well.)
>
> If the issue is not some unintended bug, then how about overriding
> this behavior when the commands are invoked interactively? Failing
> even that, can we at least have a prefix argument to override that
> explicitly?
Some time ago I changed the behavior of ‘enlarge-window’ and
‘shrink-window’ to not report an error when the window could not be
resized as requested but to resize the window as much as allowed
instead. This was not a very good idea because according to the Emacs
manual these functions _are_ supposed to report an error in the
described case. I hopefully fixed that now.
The ‘temp-buffer-resize-mode’ bug you report here is just an indirect
consequence of that earlier bug. This issue should now have been fixed
as well. Please have a look.
I also fixed a bug with ‘adjust-window-trailing-edge’ causing it to not
report an error when there was no resizable window below (or on the
right) of the edge to adjust. Please check this as well.
Thanks, martin
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#22723: 25.0.91; temp-buffer-resize-mode disables shrink-window
2016-02-18 10:51 ` martin rudalics
@ 2016-02-19 11:58 ` Eli Zaretskii
0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2016-02-19 11:58 UTC (permalink / raw)
To: martin rudalics; +Cc: 22723-done
> Date: Thu, 18 Feb 2016 11:51:45 +0100
> From: martin rudalics <rudalics@gmx.at>
>
> Some time ago I changed the behavior of ‘enlarge-window’ and
> ‘shrink-window’ to not report an error when the window could not be
> resized as requested but to resize the window as much as allowed
> instead. This was not a very good idea because according to the Emacs
> manual these functions _are_ supposed to report an error in the
> described case. I hopefully fixed that now.
>
> The ‘temp-buffer-resize-mode’ bug you report here is just an indirect
> consequence of that earlier bug. This issue should now have been fixed
> as well. Please have a look.
>
> I also fixed a bug with ‘adjust-window-trailing-edge’ causing it to not
> report an error when there was no resizable window below (or on the
> right) of the edge to adjust. Please check this as well.
Thanks, both issues seem to be fixed now.
I'm closing the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-19 11:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-17 19:46 bug#22723: 25.0.91; temp-buffer-resize-mode disables shrink-window Eli Zaretskii
2016-02-18 10:51 ` martin rudalics
2016-02-19 11:58 ` Eli Zaretskii
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).