From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#17163: 24.3.50; default-frame-alist: scroll-bar-width not used Date: Wed, 02 Apr 2014 16:38:17 +0200 Message-ID: <533C20D9.1000505@gmx.at> References: <87mwg4n9wj.fsf@micropit.couberia.selfip.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080302000904080502050706" X-Trace: ger.gmane.org 1396521503 12568 80.91.229.3 (3 Apr 2014 10:38:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2014 10:38:23 +0000 (UTC) To: Peter =?UTF-8?Q?M=C3=BCnster?= , 17163@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 03 12:38:16 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WVeKh-0001eo-AI for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Apr 2014 11:53:15 +0200 Original-Received: from localhost ([::1]:39019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVMMv-0002Ii-LA for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Apr 2014 10:42:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVMMk-0002Ia-Jt for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2014 10:42:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVMMc-0003SS-Ti for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2014 10:42:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60091) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVMMc-0003SO-PZ for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2014 10:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WVMMc-0002J7-Bc for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2014 10:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Apr 2014 14:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17163 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17163-submit@debbugs.gnu.org id=B17163.13964497048844 (code B ref 17163); Wed, 02 Apr 2014 14:42:02 +0000 Original-Received: (at 17163) by debbugs.gnu.org; 2 Apr 2014 14:41:44 +0000 Original-Received: from localhost ([127.0.0.1]:33040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVMMG-0002IW-Rs for submit@debbugs.gnu.org; Wed, 02 Apr 2014 10:41:41 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:55978) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVMMB-0002IL-Pq for 17163@debbugs.gnu.org; Wed, 02 Apr 2014 10:41:37 -0400 Original-Received: from [194.166.82.132] ([194.166.82.132]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M5tof-1XG3uu45KD-00xsXw; Wed, 02 Apr 2014 16:41:34 +0200 In-Reply-To: <87mwg4n9wj.fsf@micropit.couberia.selfip.net> X-Provags-ID: V03:K0:qOCMOUHiQG8Tcxx75umuhHyA/N4dbCHDW0N9xTCQu0CnfcDk65Q u05p/LKZtYhr/tOnwKhZLxs2ZrXDO3Mowq94idSQ3ok7R9dB+IhdmNIly4f0zQU8a0Jns/p xorlU1/5o3TqzDTnW4TwShuUlZ4KM0VvuDbPRuHKv8KOz1Md1pprI7ypJvYD2NYM8vcCAZU PWUf/fjhO5+yCMBfajAQg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:87633 Archived-At: This is a multi-part message in MIME format. --------------080302000904080502050706 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit > The value of scroll-bar-width is used only in the first frame. > > 1.) Create file /tmp/init.el: > > --8<---------------cut here---------------start------------->8--- > (set-face-attribute 'default nil :height 150) > (setq default-frame-alist '((scroll-bar-width . 10))) > (make-frame-command) > (print default-frame-alist) > --8<---------------cut here---------------end--------------->8--- > > 2.) Start emacs: > > emacs -Q -l /tmp/init.el > > 3.) Compare the widths of the scroll-bars. Should be fixed with revision 116894 on the Emacs-24 release branch. If you are on trunk you will either have to wait until the fix propagates or try the attached diffs. Thanks for the report, martin --------------080302000904080502050706 Content-Type: text/plain; charset=windows-1252; name="xterm.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xterm.diff" === modified file 'src/xterm.c' *** src/xterm.c 2014-03-11 06:50:01 +0000 --- src/xterm.c 2014-04-02 13:13:56 +0000 *************** *** 7766,7785 **** compute_fringe_widths (f, 1); unit = FRAME_COLUMN_WIDTH (f); ! #ifdef USE_TOOLKIT_SCROLL_BARS ! /* The width of a toolkit scrollbar does not change with the new ! font but we have to calculate the number of columns it occupies ! anew. */ ! FRAME_CONFIG_SCROLL_BAR_COLS (f) ! = (FRAME_CONFIG_SCROLL_BAR_WIDTH (f) + unit - 1) / unit; ! #else ! /* The width of a non-toolkit scrollbar is at least 14 pixels and a ! multiple of the frame's character width. */ ! FRAME_CONFIG_SCROLL_BAR_COLS (f) = (14 + unit - 1) / unit; ! FRAME_CONFIG_SCROLL_BAR_WIDTH (f) ! = FRAME_CONFIG_SCROLL_BAR_COLS (f) * unit; ! #endif if (FRAME_X_WINDOW (f) != 0) { --- 7766,7781 ---- compute_fringe_widths (f, 1); + /* Compute character columns occupied by scrollbar. + + Don't do things differently for non-toolkit scrollbars + (Bug#17163). */ unit = FRAME_COLUMN_WIDTH (f); ! if (FRAME_CONFIG_SCROLL_BAR_WIDTH (f) > 0) ! FRAME_CONFIG_SCROLL_BAR_COLS (f) ! = (FRAME_CONFIG_SCROLL_BAR_WIDTH (f) + unit - 1) / unit; ! else ! FRAME_CONFIG_SCROLL_BAR_COLS (f) = (14 + unit - 1) / unit; if (FRAME_X_WINDOW (f) != 0) { *************** *** 7985,7991 **** { #ifdef HAVE_X11R6_XIM struct xim_inst_t *xim_inst = dpyinfo->xim_callback_data; ! if (dpyinfo->display) { Bool ret = XUnregisterIMInstantiateCallback --- 7981,7987 ---- { #ifdef HAVE_X11R6_XIM struct xim_inst_t *xim_inst = dpyinfo->xim_callback_data; ! if (dpyinfo->display) { Bool ret = XUnregisterIMInstantiateCallback --------------080302000904080502050706--