From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3971: 23.1.50; linum-mode kills right margin Date: Thu, 30 Jul 2009 06:38:26 +0200 Message-ID: Reply-To: Lennart Borgman , 3971@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248929914 22504 80.91.229.12 (30 Jul 2009 04:58:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jul 2009 04:58:34 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 30 06:58:26 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MWNik-00056e-5u for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Jul 2009 06:58:26 +0200 Original-Received: from localhost ([127.0.0.1]:38755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWNij-0003oS-KM for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Jul 2009 00:58:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWNi0-0003Y7-Ez for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 00:57:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWNhv-0003WJ-1K for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 00:57:39 -0400 Original-Received: from [199.232.76.173] (port=41789 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWNhu-0003WD-LU for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 00:57:34 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53731) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWNht-0005Gi-Vn for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 00:57:34 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6U4vVCm009240; Wed, 29 Jul 2009 21:57:31 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6U4j5F5007902; Wed, 29 Jul 2009 21:45:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Lennart Borgman Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 30 Jul 2009 04:45:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3971 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12489287137268 (code B ref -1); Thu, 30 Jul 2009 04:45:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 30 Jul 2009 04:38:33 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6U4cS1N007257 for ; Wed, 29 Jul 2009 21:38:30 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:46098) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MWNPQ-0006ru-4K for emacs-pretest-bug@gnu.org; Thu, 30 Jul 2009 00:38:28 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MWNPP-00022T-Ax for emacs-pretest-bug@gnu.org; Thu, 30 Jul 2009 00:38:28 -0400 Original-Received: from mail-yw0-f184.google.com ([209.85.211.184]:33132) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWNPO-000229-Ui for emacs-pretest-bug@gnu.org; Thu, 30 Jul 2009 00:38:27 -0400 Original-Received: by ywh14 with SMTP id 14so397658ywh.1 for ; Wed, 29 Jul 2009 21:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=F7b5y4jJcTLi2JLQAl7142ZDi5dbzkP38Z4oSL96AaQ=; b=RWB87u3yMB13JdFnKZesrOmgrihmklCltvEhap7m7Ec+DIWJ57qdEvoR7+ZB1TrrZx 13LBCatSbwwnf/Bwe1/T5elFh+SqUxu3mi3uURouxvXUlVp9fY+eG99ksPxr5Dn9RJ+l RkSbEaBRG4Jc5HkCoCEqJagMtBn52i8648hk4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=w0m+olgpL2YbeK91acJ4TJjRZOJ5Jmgv20y8MsbExUHCZE1XYoV06YzdcNA1e5I1Hw +K0OcNp8Hx7o95gGdDU+iOFg2p6HooeDpSX/Vwy23imwE8Z+ypYsIgDiB/Shqqn5+0k7 xGr2rA4IS1RbpAataWQgLtqueO1d7O3R6VslI= Original-Received: by 10.100.172.16 with SMTP id u16mr954032ane.85.1248928706454; Wed, 29 Jul 2009 21:38:26 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 30 Jul 2009 00:57:39 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29721 gmane.emacs.pretest.bugs:24886 Archived-At: linum-mode kills the right margin. It should not touch it since it does not use it. The following patch fixes this: Index: linum.el =================================================================== RCS file: /sources/emacs/emacs/lisp/linum.el,v retrieving revision 1.11 diff -c -b -r1.11 linum.el *** linum.el 18 Jan 2009 01:45:38 -0000 1.11 --- linum.el 30 Jul 2009 04:35:10 -0000 *************** *** 108,114 **** (mapc #'delete-overlay linum-overlays) (setq linum-overlays nil) (dolist (w (get-buffer-window-list (current-buffer) nil t)) ! (set-window-margins w 0))) (defun linum-update-current () "Update line numbers for the current buffer." --- 108,114 ---- (mapc #'delete-overlay linum-overlays) (setq linum-overlays nil) (dolist (w (get-buffer-window-list (current-buffer) nil t)) ! (set-window-margins w 0 (cdr (window-margins w))))) (defun linum-update-current () "Update line numbers for the current buffer." *************** *** 163,169 **** (overlay-put ov 'linum-str str)))) (forward-line) (setq line (1+ line))) ! (set-window-margins win width))) (defun linum-after-change (beg end len) ;; update overlays on deletions, and after newlines are inserted --- 163,169 ---- (overlay-put ov 'linum-str str)))) (forward-line) (setq line (1+ line))) ! (set-window-margins win width (cdr (window-margins win))))) (defun linum-after-change (beg end len) ;; update overlays on deletions, and after newlines are inserted In GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-06-30 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping'