From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gauthier Segay Newsgroups: gmane.emacs.help Subject: UI glitch with text-scale-increase / text-scale-decrease with linum / nlinum Date: Sun, 8 Feb 2015 20:42:13 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1423430604 10409 80.91.229.3 (8 Feb 2015 21:23:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Feb 2015 21:23:24 +0000 (UTC) Cc: monnier@iro.umontreal.ca, markus.triska@gmx.at To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 08 22:23:23 2015 Return-path: Envelope-to: geh-help-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 1YKZK7-0006nL-4J for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Feb 2015 22:23:23 +0100 Original-Received: from localhost ([::1]:57864 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKZK6-0001XE-HS for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Feb 2015 16:23:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKXkF-0007PD-63 for help-gnu-emacs@gnu.org; Sun, 08 Feb 2015 14:42:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKXkE-0004PA-86 for help-gnu-emacs@gnu.org; Sun, 08 Feb 2015 14:42:15 -0500 Original-Received: from mail-ig0-x22a.google.com ([2607:f8b0:4001:c05::22a]:50067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKXkE-0004P2-3o for help-gnu-emacs@gnu.org; Sun, 08 Feb 2015 14:42:14 -0500 Original-Received: by mail-ig0-f170.google.com with SMTP id l13so11714544iga.1 for ; Sun, 08 Feb 2015 11:42:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=92TD0BWjMtCS/QLrN9Zym2r4PzQAZKAh7Ave3zYNcv8=; b=nQau0beucKHeBGqldFZFO6Erlw3H7W1qZeeEThG6KCFlOc0qqRHp8sSXJAa8imuaVk NWY11WDapIQ8p9KpFAZk6+LShSb5NCiB2voXJ6rjx5W6ei+xkVxE+6XmvHatuUgEA+ex 6FQVxXO0a218VAs+t8FF00tKOBOxa467m9y3qcpPmHa7vUJlVzzvtWi3k40fcAmYz71o k9Ng/zYegy6jxOAVdOZ2i6ZHsNykQ0dYoGfrybJubh7/RgaiNZ1M+CJPzAdCEryevPGi +C1sUuEz6nS7sGO56cB/UHilzng3Ybv4X5Dh3FmRRw5k5GWx/wpCY56wZULYm3fdI3lh rsbg== X-Received: by 10.43.6.71 with SMTP id oj7mr22943202icb.87.1423424533178; Sun, 08 Feb 2015 11:42:13 -0800 (PST) Original-Received: by 10.107.14.10 with HTTP; Sun, 8 Feb 2015 11:42:13 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c05::22a X-Mailman-Approved-At: Sun, 08 Feb 2015 16:23:12 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102583 Archived-At: I've setup this http://ergoemacs.org/emacs/emacs_mouse_wheel_config.html ;; on Linux, make Control+wheel do increase/decrease font size (global-set-key (kbd "") 'text-scale-increase) (global-set-key (kbd "") 'text-scale-decrease) The issue is that linum or nlinum doesn't notice the change, the line number gutter doesn'adjust it's width. The work around is to disable and enable again those modes. How can this be done in the above script? Can this somehow be handled by linum/nlinum modes whenever the text-scale or font is changed? Thanks for your help.