From unknown Mon Jun 16 23:44:20 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#1255 <1255@debbugs.gnu.org> To: bug#1255 <1255@debbugs.gnu.org> Subject: Status: 23.0.60; linum-mode: no update after text-scale-adjust Reply-To: bug#1255 <1255@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:44:20 +0000 retitle 1255 23.0.60; linum-mode: no update after text-scale-adjust reassign 1255 emacs submitter 1255 Stephen Berman severity 1255 normal thanks From stephen.berman@gmx.net Sat Oct 25 14:51:25 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.8 required=4.0 tests=AWL,BAYES_00,GMAIL, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 25 Oct 2008 21:51:25 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9PLpMfR004691 for ; Sat, 25 Oct 2008 14:51:23 -0700 Received: from mail.gnu.org ([199.232.76.166]:44100 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Ktqzs-0005xI-I8 for emacs-pretest-bug@gnu.org; Sat, 25 Oct 2008 17:48:36 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ktr2W-0002js-UY for emacs-pretest-bug@gnu.org; Sat, 25 Oct 2008 17:51:21 -0400 Received: from mail.gmx.net ([213.165.64.20]:50714) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Ktr2W-0002ge-9J for emacs-pretest-bug@gnu.org; Sat, 25 Oct 2008 17:51:20 -0400 Received: (qmail invoked by alias); 25 Oct 2008 21:44:37 -0000 Received: from i5387DFFF.versanet.de (EHLO escher.local.home) [83.135.223.255] by mail.gmx.net (mp067) with SMTP; 25 Oct 2008 23:44:37 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX19iUyIcqPNiTwRRwbtfcUr9H0G2Ltbzeb3FAdaTio arGCiChVWBgMKi Received: by escher.local.home (Postfix, from userid 1000) id 5C342EC3FA; Sat, 25 Oct 2008 23:44:37 +0200 (CEST) From: Stephen Berman To: emacs-pretest-bug@gnu.org Subject: 23.0.60; linum-mode: no update after text-scale-adjust Sender: steve@escher.local.home Date: Sat, 25 Oct 2008 23:44:37 +0200 Message-ID: <871vy4tkmy.fsf@escher.local.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.58 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Adding this to the bug tracker; I still see it in GNU Emacs 23.0.60.12 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-10-25 on escher. (I also still see the problem Juanma Barranquero pointed out.) On Wed, 04 Jun 2008 20:38:07 +0200 Stephen Berman wrote: > On Wed, 4 Jun 2008 16:35:41 +0200 "Juanma Barranquero" wrote: > >> Testing face-remap with linum-mode, a small limitation does show up: >> margin width is computed in character cells (according to the docs of >> `set-window-margins'), but obviously it does not take >> `face-remapping-alist' into account. > > This also reveals a linum bug: linum-mode fails to update the display > when the font size changes. E.g., with linum-mode enabled type C-x C-- > and then there is text at the bottom of the the window with no line > numbering in the margin (if the text in the buffer is long enough). > > Steve Berman From stephen.berman@gmx.net Sat Oct 25 15:17:50 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.3 required=4.0 tests=AWL,BAYES_00,GMAIL, HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1255) by emacsbugs.donarmstrong.com; 25 Oct 2008 22:17:50 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m9PMHksK011310 for <1255@emacsbugs.donarmstrong.com>; Sat, 25 Oct 2008 15:17:48 -0700 Received: (qmail invoked by alias); 25 Oct 2008 22:17:41 -0000 Received: from i5387DFFF.versanet.de (EHLO escher.local.home) [83.135.223.255] by mail.gmx.net (mp048) with SMTP; 26 Oct 2008 00:17:41 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/ZBSMqaG7ZHTwtkxhZyFiCYJRFe2SJxwTKS9BwEF +/pbJQqwz79cLu Received: by escher.local.home (Postfix, from userid 1000) id 58A50EC3FA; Sun, 26 Oct 2008 00:17:40 +0200 (CEST) From: Stephen Berman To: 1255@debbugs.gnu.org Subject: Re: bug#1255: 23.0.60; linum-mode: no update after text-scale-adjust References: <871vy4tkmy.fsf@escher.local.home> Sender: steve@escher.local.home Date: Sun, 26 Oct 2008 00:17:40 +0200 In-Reply-To: <871vy4tkmy.fsf@escher.local.home> (Stephen Berman's message of "Sat, 25 Oct 2008 23:44:37 +0200") Message-ID: <87wsfws4jf.fsf@escher.local.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57 On Sat, 25 Oct 2008 23:44:37 +0200 Stephen Berman wrote: > Adding this to the bug tracker; I still see it in GNU Emacs 23.0.60.12 > (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-10-25 on escher. (I > also still see the problem Juanma Barranquero pointed out.) I forgot to give a reference for this; see . > On Wed, 04 Jun 2008 20:38:07 +0200 Stephen Berman wrote: > >> On Wed, 4 Jun 2008 16:35:41 +0200 "Juanma Barranquero" wrote: >> >>> Testing face-remap with linum-mode, a small limitation does show up: >>> margin width is computed in character cells (according to the docs of >>> `set-window-margins'), but obviously it does not take >>> `face-remapping-alist' into account. >> >> This also reveals a linum bug: linum-mode fails to update the display >> when the font size changes. E.g., with linum-mode enabled type C-x C-- >> and then there is text at the bottom of the the window with no line >> numbering in the margin (if the text in the buffer is long enough). >> >> Steve Berman From lekktu@gmail.com Sun Oct 26 10:50:33 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.9 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1255) by emacsbugs.donarmstrong.com; 26 Oct 2008 17:50:33 +0000 Received: from mail-gx0-f15.google.com (mail-gx0-f15.google.com [209.85.217.15]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9QHoTxB010169 for <1255@emacsbugs.donarmstrong.com>; Sun, 26 Oct 2008 10:50:31 -0700 Received: by gxk8 with SMTP id 8so1593192gxk.1 for <1255@emacsbugs.donarmstrong.com>; Sun, 26 Oct 2008 10:50:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=VoVk3+PQkoKS1cGtjbMYA9KzFOnZo99lveor6/MicP0=; b=PaN7i4I11r8LD4dklIhPlHDqGZtJk+SAEchNUbXZdToGV6yD5Jl+FolvOEYSqrzc3r hqgzr7LVd/BFtZCv53xL2lvuXAyRvLImOdrRaWrx7XZgkVhvLn2Ai1Yvy+o4+2ojVBRv EKnnF9mRxRZi9GjHgkpcJx2yGWYloXdYgZv5E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Otgqptk8htip5EGQbcanR/HPhQntm7BbmFSPxEeO/kBb+7k3/5jNveCtNirCLH8CqE dMmwlwq2jaY3OgybR7P9OXebDC/9gMiRNEZ0DMqj8+TD9FFlYF05Mr1qiOK8c+PjnvMA iPgAueTR6DkWOnjHHdSDvtER1Fs44HSWLN2gg= Received: by 10.100.105.15 with SMTP id d15mr5180517anc.31.1225043424623; Sun, 26 Oct 2008 10:50:24 -0700 (PDT) Received: by 10.100.13.13 with HTTP; Sun, 26 Oct 2008 10:50:24 -0700 (PDT) Message-ID: Date: Sun, 26 Oct 2008 18:50:24 +0100 From: "Juanma Barranquero" To: "Stephen Berman" , 1255@debbugs.gnu.org Subject: Re: bug#1255: 23.0.60; linum-mode: no update after text-scale-adjust In-Reply-To: <87wsfws4jf.fsf@escher.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <871vy4tkmy.fsf@escher.local.home> <87wsfws4jf.fsf@escher.local.home> On Sat, Oct 25, 2008 at 23:17, Stephen Berman wrote: > On Sat, 25 Oct 2008 23:44:37 +0200 Stephen Berman wrote: > >> Adding this to the bug tracker; I still see it in GNU Emacs 23.0.60.12 >> (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-10-25 on escher. (I >> also still see the problem Juanma Barranquero pointed out.) > > I forgot to give a reference for this; see > . FWIW, the problem I pointed out is not linum's, but either a limitation of the way text-scale-adjust is implemented, or a redisplay bug. Linum just happens to be a good way to show it off. Juanma From monnier@iro.umontreal.ca Sun Oct 26 19:59:16 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.0 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1255) by emacsbugs.donarmstrong.com; 27 Oct 2008 02:59:17 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9R2xDpq014423 for <1255@emacsbugs.donarmstrong.com>; Sun, 26 Oct 2008 19:59:14 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApAFAOjKBElFxIGZ/2dsb2JhbACBdr0+g0+BDQ X-IronPort-AV: E=Sophos;i="4.33,490,1220241600"; d="scan'208";a="28887636" Received: from 69-196-129-153.dsl.teksavvy.com (HELO pastel.home) ([69.196.129.153]) by ironport2-out.teksavvy.com with ESMTP; 26 Oct 2008 22:59:07 -0400 Received: by pastel.home (Postfix, from userid 20848) id 3FF358E6F; Sun, 26 Oct 2008 22:59:07 -0400 (EDT) From: Stefan Monnier To: Juanma Barranquero Cc: 1255@debbugs.gnu.org, "Stephen Berman" Subject: Re: bug#1255: 23.0.60; linum-mode: no update after text-scale-adjust Message-ID: References: <871vy4tkmy.fsf@escher.local.home> <87wsfws4jf.fsf@escher.local.home> Date: Sun, 26 Oct 2008 22:59:07 -0400 In-Reply-To: (Juanma Barranquero's message of "Sun, 26 Oct 2008 18:50:24 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>> Adding this to the bug tracker; I still see it in GNU Emacs 23.0.60.12 >>> (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-10-25 on escher. (I >>> also still see the problem Juanma Barranquero pointed out.) >> >> I forgot to give a reference for this; see >> . > FWIW, the problem I pointed out is not linum's, but either a > limitation of the way text-scale-adjust is implemented, or a redisplay > bug. Linum just happens to be a good way to show it off. What makes you think so? Stefan From lekktu@gmail.com Mon Oct 27 03:08:24 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.0 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1255) by emacsbugs.donarmstrong.com; 27 Oct 2008 10:08:24 +0000 Received: from mail-gx0-f15.google.com (mail-gx0-f15.google.com [209.85.217.15]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9RA8L4L023873 for <1255@emacsbugs.donarmstrong.com>; Mon, 27 Oct 2008 03:08:22 -0700 Received: by gxk8 with SMTP id 8so2112837gxk.1 for <1255@emacsbugs.donarmstrong.com>; Mon, 27 Oct 2008 03:08:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Tt2rlK6Ix+kMvMoEjyAlWiIZ8b/FW6Eeq+GL+NOImhg=; b=b63SZsYM6+KVJWPpdESpG3rFBs5+SHuGT7r28yVTcL1gBPaIBX7jmSM57tIgfu2nKx djG36jeMr1/JpDj1iySULgMD4yAd3iUnbuvwkhhrQWEA5YlPmWq+w2qP++8Psf27zVhS wGU7V8lzcJyK+mEXDULXtq6l1FqrocAEyR5uk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=V7oUgkaAJOHZKIkZcOOZXq/0bQtP9qVXHdWzQu2trMosTS+SgF2Bt1CnI/l8vLrg2i qWWPfsDQOWX0mNS7/MJ7QX6pvxIj9eUlVIngoQ3T2w3Oa9DAAMvyk8Gknt68iHY2NUHv ga3CFbC9e33D8iT4m31hr0PBTfpwBcCYunzAc= Received: by 10.100.249.10 with SMTP id w10mr211503anh.0.1225102095825; Mon, 27 Oct 2008 03:08:15 -0700 (PDT) Received: by 10.100.13.13 with HTTP; Mon, 27 Oct 2008 03:08:15 -0700 (PDT) Message-ID: Date: Mon, 27 Oct 2008 11:08:15 +0100 From: "Juanma Barranquero" To: "Stefan Monnier" Subject: Re: bug#1255: 23.0.60; linum-mode: no update after text-scale-adjust Cc: 1255@debbugs.gnu.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <871vy4tkmy.fsf@escher.local.home> <87wsfws4jf.fsf@escher.local.home> On Mon, Oct 27, 2008 at 03:59, Stefan Monnier wrote: >> FWIW, the problem I pointed out is not linum's, but either a >> limitation of the way text-scale-adjust is implemented, or a redisplay >> bug. Linum just happens to be a good way to show it off. > > What makes you think so? ELISP> (let ((ov (make-overlay (point) (point))) (str "01234")) (set-window-margins (selected-window) (length str)) (overlay-put ov 'before-string (propertize " " 'display `((margin left-margin) ,str))) nil) nil ELISP> (text-scale-increase 3) t And the "01234" text in the window margin is no longer entirely visible. I.e., `set-window-margins' sets the margin width in "character cells", and its pixel width does not vary when the character size is increased by `text-scale-increaase' and friends. This is unrelated to linum.el, AFAICS. Juanma From monnier@iro.umontreal.ca Mon Oct 27 12:22:27 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.0 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1255) by emacsbugs.donarmstrong.com; 27 Oct 2008 19:22:27 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9RJMNGi031619 for <1255@emacsbugs.donarmstrong.com>; Mon, 27 Oct 2008 12:22:25 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFALuxBUlFxIGZ/2dsb2JhbACBdsUtg0+BDQ X-IronPort-AV: E=Sophos;i="4.33,493,1220241600"; d="scan'208";a="28925856" Received: from 69-196-129-153.dsl.teksavvy.com (HELO pastel.home) ([69.196.129.153]) by ironport2-out.teksavvy.com with ESMTP; 27 Oct 2008 15:22:17 -0400 Received: by pastel.home (Postfix, from userid 20848) id EF7F28E6F; Mon, 27 Oct 2008 15:22:16 -0400 (EDT) From: Stefan Monnier To: "Juanma Barranquero" Cc: 1255@debbugs.gnu.org Subject: Re: bug#1255: 23.0.60; linum-mode: no update after text-scale-adjust Message-ID: References: <871vy4tkmy.fsf@escher.local.home> <87wsfws4jf.fsf@escher.local.home> Date: Mon, 27 Oct 2008 15:22:16 -0400 In-Reply-To: (Juanma Barranquero's message of "Mon, 27 Oct 2008 11:08:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>> FWIW, the problem I pointed out is not linum's, but either a >>> limitation of the way text-scale-adjust is implemented, or a redisplay >>> bug. Linum just happens to be a good way to show it off. >> What makes you think so? ELISP> (let ((ov (make-overlay (point) (point))) > (str "01234")) > (set-window-margins (selected-window) (length str)) > (overlay-put ov 'before-string (propertize " " 'display > `((margin left-margin) ,str))) > nil) > nil ELISP> (text-scale-increase 3) > t > And the "01234" text in the window margin is no longer entirely > visible. I.e., `set-window-margins' sets the margin width in > "character cells", and its pixel width does not vary when the > character size is increased by `text-scale-increaase' and friends. > This is unrelated to linum.el, AFAICS. Oh, now I understand. Then your problem is not a bug but a feature: text-scale-adjust is specifically meant to change the size of the text but nothing else. If you want to change the size of the text and the rest, then you want to use something else (e.g. customize the `default' face). So, yes, the problem lies somewhat in linum-mode which should resize the margin accordingly, tho it's far from easy for it to do so (and it can only do it in increments of the base default font size). Stefan From lekktu@gmail.com Mon Oct 27 15:18:38 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1255) by emacsbugs.donarmstrong.com; 27 Oct 2008 22:18:38 +0000 Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.30]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9RMIZJp010443 for <1255@emacsbugs.donarmstrong.com>; Mon, 27 Oct 2008 15:18:36 -0700 Received: by yw-out-2324.google.com with SMTP id 3so596099ywj.31 for <1255@emacsbugs.donarmstrong.com>; Mon, 27 Oct 2008 15:18:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=1Nd8GiTTct2EFZ2S3Uuh1nfGUc7L4uiFfQEdg2vtVXg=; b=PIttVX3stesViv6kbIMzDRtTBlAnPXvgBm7oDgh/9VOIGXg8dEkMJqdIkRyfUHUC1k VmHls1CBBWLZXx9687HgJhkbmXAqdH+KO0d5ESyvhJgYXWd8Vwf4+tfYGy3gsdK3g8a7 b50rWOWphV5dtu4XY1iybpuRIaqepbE2RU1y4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=K5PU1/k6dIKZ8H9TQJco/TVfmtqAeJZ38jvyX1EoMXdO+6zMyx1GqvqyPnnHnjkf+B n1j5sNHQNdHDhMxLMF2CYHi0qj1mrH6rsiCIlJ7D132GAaupvVPWxlvtOVEcNgDIsHqQ 9V8ziZRZ8Ay7Tj2p/yZgtTOpk4RCDvyvZ8jNQ= Received: by 10.100.95.19 with SMTP id s19mr6485736anb.43.1225145914655; Mon, 27 Oct 2008 15:18:34 -0700 (PDT) Received: by 10.100.13.13 with HTTP; Mon, 27 Oct 2008 15:18:34 -0700 (PDT) Message-ID: Date: Mon, 27 Oct 2008 23:18:34 +0100 From: "Juanma Barranquero" To: "Stefan Monnier" Subject: Re: bug#1255: 23.0.60; linum-mode: no update after text-scale-adjust Cc: 1255@debbugs.gnu.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <871vy4tkmy.fsf@escher.local.home> <87wsfws4jf.fsf@escher.local.home> On Mon, Oct 27, 2008 at 20:22, Stefan Monnier wrote: > Oh, now I understand. Then your problem is not a bug but a feature: > text-scale-adjust is specifically meant to change the size of the text > but nothing else. Well, it changes the size of the buffer text *and* the margin text... > If you want to change the size of the text and the > rest, then you want to use something else (e.g. customize the `default' > face). That would not work for several buffers. > So, yes, the problem lies somewhat in linum-mode which should resize the > margin accordingly For specific uses of linum, you can use `linum-format' and `linum-before-numbering-hook' to set a face of right size, or any other workaround. But the issue will still be present for any package that puts information into the window margin, so it is not linum-mode specific. > tho it's far from easy for it to do so (and it can > only do it in increments of the base default font size). That's the real problem, IMO. Juanma From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 30 06:40:10 2011 Received: (at control) by debbugs.gnu.org; 30 Mar 2011 10:40:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4sor-0002P5-T7 for submit@debbugs.gnu.org; Wed, 30 Mar 2011 06:40:10 -0400 Received: from mail-qw0-f44.google.com ([209.85.216.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4soj-0002OF-Nr for control@debbugs.gnu.org; Wed, 30 Mar 2011 06:40:06 -0400 Received: by qwg5 with SMTP id 5so699908qwg.3 for ; Wed, 30 Mar 2011 03:39:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=0N+j45wTiBMD2eftkk+0TM8zpHU2uTBaBNggjcXrJY0=; b=J4wzPy77T3E6cvQWwQoSmeDn9Os46UumqwmeHDW+96CKK8LPz1rhBkyxxiK9Lb6EH9 h7pQRmjx760foPdh/AxxnbXvpoZzvD6kfwDwzf9bEN9vKoP+Dt6gHC1n5sJnFB84Gmsd nB03iJstxq+slPCV3Uq20/RF7OY2Fm3BD7b24= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=bcc:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=i3uZxAdR0kTuTlpe3ndqEBT/wNd4tpQIM0JtaqSvAlhGEJ0RPynCttgTHMDhhIVxfJ P7lEW+Oaa4WCnUnxW3pRc4EKe+H1S2POHABv4sqYquEpaS3ZST+BaWI2DXPuHDHazTfw pLdiuxWOMSTUOKbeRTkAhKDxd4nQqVBhwDoP4= Bcc: control@debbugs.gnu.org Received: by 10.229.68.106 with SMTP id u42mr765803qci.284.1301481596119; Wed, 30 Mar 2011 03:39:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.94.207 with HTTP; Wed, 30 Mar 2011 03:39:16 -0700 (PDT) In-Reply-To: <1301449429.2448.36.camel@nixie-desktop> References: <1301449429.2448.36.camel@nixie-desktop> From: Juanma Barranquero Date: Wed, 30 Mar 2011 12:39:16 +0200 Message-ID: Subject: Re: bug#8379: The width of linum window is not adjusted after face-remapping To: nixie Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: control Cc: 8379@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) forcemerge 1255 8379 thanks > I found that the width of linum window is not changed with > (text-scale-increase) or (text-scale-decrease) function. This is bug#1255: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1255 =C2=A0 =C2=A0 Juanma From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 06 12:10:47 2012 Received: (at control) by debbugs.gnu.org; 6 Mar 2012 17:10:47 +0000 Received: from localhost ([127.0.0.1]:36158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S4xuR-0003Ry-7y for submit@debbugs.gnu.org; Tue, 06 Mar 2012 12:10:47 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:36230) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S4xuE-0003RX-25 for control@debbugs.gnu.org; Tue, 06 Mar 2012 12:10:34 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1S4xtL-00017x-9V for control@debbugs.gnu.org; Tue, 06 Mar 2012 12:09:39 -0500 Date: Tue, 06 Mar 2012 12:09:39 -0500 Message-Id: Subject: control message for bug 10960 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) merge 1255 10960 From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 16:56:05 2016 Received: (at 1255) by debbugs.gnu.org; 9 Jan 2016 21:56:05 +0000 Received: from localhost ([127.0.0.1]:44699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aI1UT-0004TT-2D for submit@debbugs.gnu.org; Sat, 09 Jan 2016 16:56:05 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:38095) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aI1UR-0004Sz-FN for 1255@debbugs.gnu.org; Sat, 09 Jan 2016 16:56:03 -0500 Received: by mail-wm0-f48.google.com with SMTP id b14so218024441wmb.1 for <1255@debbugs.gnu.org>; Sat, 09 Jan 2016 13:56:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=M8hORbD6n6h6gpD0zQI5HknOCICq8AX3CAghHZ4Gm5o=; b=b9IS/LH8gr8hp6zAIUg7U5epG+c2VyvpxaaKZL06o2RHtqsZ5yYLFJS2dBM9yt5SX+ 86JJjukTBxdE8VRYkOUHVbGgUzr3MmtyE0fLcZn8izFXUis1Ftg5ur/Y96kYyRDU3eWr 8Ts/ipRVOICI7N4Yf2OpUNKKowXpLm6tRF2azctwJCxXqoyOKANQmd4Qm1/cQ6sbFqoM hcJdYGmFzWcChAvWRSJ6ZLlC6twXByfKtGZmgccUl4aBIEmezofDaMJviRXl+oYjlZiq t4uAgELaN3InEOC608o2FxKwe0nAJiLtcdeXX+LmIFaBIEw1m0wxvfOz49p8GBG86ryf nNQg== X-Received: by 10.194.103.164 with SMTP id fx4mr107896079wjb.56.1452376557801; Sat, 09 Jan 2016 13:55:57 -0800 (PST) Received: from galloway.idiocy.org (0.7.b.e.8.2.9.3.1.4.b.f.c.3.0.3.9.2.1.8.8.f.3.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:3f8:8129:303c:fb41:3928:eb70]) by smtp.gmail.com with ESMTPSA id p9sm56890637wjy.41.2016.01.09.13.55.56 for <1255@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Jan 2016 13:55:56 -0800 (PST) From: Alan J Third To: 1255@debbugs.gnu.org Subject: Re: bug#1255: 23.0.60; linum-mode: no update after text-scale-adjust References: <871vy4tkmy.fsf@escher.local.home> Date: Sat, 09 Jan 2016 21:55:51 +0000 In-Reply-To: <871vy4tkmy.fsf@escher.local.home> (Stephen Berman's message of "Sat, 25 Oct 2008 23:44:37 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 1255 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) (let ((ov (make-overlay (point) (point))) (str "01234")) (set-window-margins (selected-window) (length str)) (overlay-put ov 'before-string (propertize " " 'display `((margin left-margin) ,str))) nil) (text-scale-increase 3) Using the above code from Juanma shows this is still an issue in 25. -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 10:40:29 2016 Received: (at 1255) by debbugs.gnu.org; 10 Jan 2016 15:40:29 +0000 Received: from localhost ([127.0.0.1]:45666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aII6W-0004Gi-ST for submit@debbugs.gnu.org; Sun, 10 Jan 2016 10:40:29 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33813) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aII6V-0004GW-14 for 1255@debbugs.gnu.org; Sun, 10 Jan 2016 10:40:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aII6M-00026y-SS for 1255@debbugs.gnu.org; Sun, 10 Jan 2016 10:40:21 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aII6M-00026u-PA; Sun, 10 Jan 2016 10:40:18 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3094 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aII6M-0005d9-4H; Sun, 10 Jan 2016 10:40:18 -0500 Date: Sun, 10 Jan 2016 17:40:22 +0200 Message-Id: <83k2nhmoih.fsf@gnu.org> From: Eli Zaretskii To: Alan J Third In-reply-to: (message from Alan J Third on Sat, 09 Jan 2016 21:55:51 +0000) Subject: Re: bug#1255: 23.0.60; linum-mode: no update after text-scale-adjust References: <871vy4tkmy.fsf@escher.local.home> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 1255 Cc: 1255@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Alan J Third > Date: Sat, 09 Jan 2016 21:55:51 +0000 > > (let ((ov (make-overlay (point) (point))) > (str "01234")) > (set-window-margins (selected-window) (length str)) > (overlay-put ov 'before-string > (propertize " " 'display > `((margin left-margin) ,str))) > nil) > > (text-scale-increase 3) > > Using the above code from Juanma shows this is still an issue in 25. Thanks for re-testing. However, my analysis of this bug is different: unlike with the original report, typing "C-x -" when linum-mode is enabled does now recompute and update the width of the margin (and not surprisingly so: linum.el now uses pixel dimensions and converts them to character cells using the current canonical character width, which does account for rescaling). Evaluating (text-scale-increase 3) when linum-mode is enabled also does TRT. The only thing that fails to adjust the margin is the above snippet, but I submit that it's the problem of the snippet, since window margins are never changed by the display engine on its own, they were always controlled by Lisp applications. So I think we can safely close this bug as done. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 15:17:00 2016 Received: (at control) by debbugs.gnu.org; 10 Jan 2016 20:17:00 +0000 Received: from localhost ([127.0.0.1]:45742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIMQ8-0002Og-IL for submit@debbugs.gnu.org; Sun, 10 Jan 2016 15:17:00 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:36382) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIMQ6-0002OR-Ni for control@debbugs.gnu.org; Sun, 10 Jan 2016 15:16:59 -0500 Received: by mail-wm0-f48.google.com with SMTP id l65so189305510wmf.1 for ; Sun, 10 Jan 2016 12:16:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:date:message-id:to:from:subject; bh=Roa7OfW6oNuR5k8hrffPccHU5m9FdxlU8cHShJ4yhWQ=; b=cJfUGLxU6bHR2bQfhVaOMnKgehJ3SWayDL6YwII6VSNFoE9OnmGxDFrwmrF2+LYYjx 6FikvLjaioFrZZTB5EOmjJA+CmkX8KnngQ5CbpsnPZLUiw0aAIZYTzOpmu9vdc2Qp8dU xbteLefAU11uNgTWML4ILjKvVrWNkCyEl/YEjfbIDW2mTt1I53rK7SKZo6bWMlWg92Vo vEKbOivESjEJr1hc5IGuHttk7ixZGB3PDhWexxzdkRk4J8PhPWrfLBlngpohl3Bcu8hJ nvPjRhbl0g2RgTdnJls2QAcFNz/gWUHZWfEaRI6u4MO8rixIGaDb4j/wzvoATrJ5wJVF D42g== X-Received: by 10.194.115.129 with SMTP id jo1mr131519172wjb.28.1452457013188; Sun, 10 Jan 2016 12:16:53 -0800 (PST) Received: from galloway.idiocy.org (2.d.d.e.0.6.c.f.1.4.9.b.d.f.0.8.9.2.1.8.8.f.3.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:3f8:8129:80fd:b941:fc60:edd2]) by smtp.gmail.com with ESMTPSA id e77sm9589719wma.18.2016.01.10.12.16.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jan 2016 12:16:52 -0800 (PST) Date: Sun, 10 Jan 2016 20:16:51 +0000 Message-Id: To: control@debbugs.gnu.org From: Alan J Third Subject: control message for bug #1255 X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) close 1255 25.1 From unknown Mon Jun 16 23:44:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 08 Feb 2016 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator