all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: master 7e387c9: * lisp/man.el (Man-width-max): New defcustom (bug#32536, bug#9385)
@ 2019-12-08 18:03 Eli Zaretskii
  2019-12-08 21:41 ` Juri Linkov
  2019-12-08 21:45 ` ChangeLog styles (was: master 7e387c9: * lisp/man.el (Man-width-max): New defcustom (bug#32536, bug#9385)) Juri Linkov
  0 siblings, 2 replies; 8+ messages in thread
From: Eli Zaretskii @ 2019-12-08 18:03 UTC (permalink / raw)
  To: Juri Linkov; +Cc: emacs-devel

> +(defun Man-columns ()
> +  (let ((width (cond
> +                ((and (integerp Man-width) (> Man-width 0))
> +                 Man-width)
> +                (Man-width
> +                 (let ((window (get-buffer-window nil t)))
> +                   (frame-width (and window (window-frame window)))))
> +                (t
> +                 (window-width (get-buffer-window nil t))))))

Bother: both frame-width and window-width return values in units of
the canonical character width, which will not change if the default
face is remapped.  And you are using the value to set the COLUMNS
environment variable, so you could get too wide lines, which will not
fit within the window.

P.S. And please do not "optimize" the log messages the way you did in
this commit: it will make the generated ChangeLog entry look wrong.
Please only use the ChangeLog-style text in the header line of the log
entry if it is the entire text; otherwise please come up with some
summary there, and leave the ChangeLog-style text in its original
form, without an empty line in between.  TIA.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-12-09 16:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-08 18:03 master 7e387c9: * lisp/man.el (Man-width-max): New defcustom (bug#32536, bug#9385) Eli Zaretskii
2019-12-08 21:41 ` Juri Linkov
2019-12-09  3:30   ` Eli Zaretskii
2019-12-09  9:20     ` martin rudalics
2019-12-09 13:30       ` Eli Zaretskii
2019-12-09 16:01         ` martin rudalics
2019-12-08 21:45 ` ChangeLog styles (was: master 7e387c9: * lisp/man.el (Man-width-max): New defcustom (bug#32536, bug#9385)) Juri Linkov
2019-12-09 13:07   ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.