From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Can someone explain this code in xterm.c? Date: Tue, 29 Apr 2003 15:29:09 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <5xsms78hm6.fsf@kfs2.cua.dk> <5x1xzmjmjf.fsf@kfs2.cua.dk> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1051644877 5111 80.91.224.249 (29 Apr 2003 19:34:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2003 19:34:37 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 29 21:34:35 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Aas7-0001K9-00 for ; Tue, 29 Apr 2003 21:34:35 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19Ab0u-00051J-00 for ; Tue, 29 Apr 2003 21:43:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Aas7-0001pz-0C for emacs-devel@quimby.gnus.org; Tue, 29 Apr 2003 15:34:35 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19Aarc-0001X1-00 for emacs-devel@gnu.org; Tue, 29 Apr 2003 15:34:04 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19Aaqr-0000P8-00 for emacs-devel@gnu.org; Tue, 29 Apr 2003 15:33:18 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Aamr-0006l2-00 for emacs-devel@gnu.org; Tue, 29 Apr 2003 15:29:09 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 19Aamr-0003Yv-00; Tue, 29 Apr 2003 15:29:09 -0400 Original-To: storm@cua.dk (Kim F. Storm) In-reply-to: <5x1xzmjmjf.fsf@kfs2.cua.dk> (storm@cua.dk) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13556 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13556 > It appears to me that vertical_scroll_bar_extra holds the > width in pixels of the scroll bar, in all cases. Its name is > misleading. But AFAICS it is not used for that purpose -- in the cases where it is used (notably in CHAR_TO_PIXEL_WIDTH), it is supposed to be the width of the scroll bar _area_, not the actual width of the scroll bar. We are describing the same thing in different words. But I would rather go over each use (there are only a few) of vertical_scroll_bar_extra and change them to use the proper value of either FRAME_SCROLL_BAR_PIXEL_WIDTH or "scroll_bar_columns * canonical_x_unit". If that works, it is ok with me. So when is x_set_window_size_1 activated -- e.g. as the comment on x_set_window_size_1 suggests, when doe emacs run under X without a widget? I don't know when there's no widget if using Xt or GTK, but x_set_window_size always calls x_set_window_size_1 when not using Xt and GTK.