From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6871: Please make linum-mode per buffer, not per major mode Date: Fri, 20 Aug 2010 14:59:09 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1282309774 15043 80.91.229.12 (20 Aug 2010 13:09:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Aug 2010 13:09:34 +0000 (UTC) Cc: Juanma Barranquero , 6871@debbugs.gnu.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 20 15:09:32 2010 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.69) (envelope-from ) id 1OmRLe-0000kB-6C for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Aug 2010 15:09:31 +0200 Original-Received: from localhost ([127.0.0.1]:45443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmRLa-0003hQ-O6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Aug 2010 09:09:26 -0400 Original-Received: from [140.186.70.92] (port=55921 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmRLL-0003bY-1Q for bug-gnu-emacs@gnu.org; Fri, 20 Aug 2010 09:09:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OmRLF-0006vi-Lq for bug-gnu-emacs@gnu.org; Fri, 20 Aug 2010 09:09:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39063) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OmRLF-0006ve-KF for bug-gnu-emacs@gnu.org; Fri, 20 Aug 2010 09:09:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OmRBV-0001FP-Md; Fri, 20 Aug 2010 08:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Aug 2010 12:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6871 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6871-submit@debbugs.gnu.org id=B6871.12823090864782 (code B ref 6871); Fri, 20 Aug 2010 12:59:01 +0000 Original-Received: (at 6871) by debbugs.gnu.org; 20 Aug 2010 12:58:06 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OmRAb-0001F5-A4 for submit@debbugs.gnu.org; Fri, 20 Aug 2010 08:58:05 -0400 Original-Received: from impaqm1.telefonica.net ([213.4.138.1]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OmRAY-0001Eg-Ck for 6871@debbugs.gnu.org; Fri, 20 Aug 2010 08:58:03 -0400 Original-Received: from IMPmailhost4.adm.correo ([10.20.102.125]) by IMPaqm1.telefonica.net with bizsmtp id wYLV1e00j2iL0W201czALx; Fri, 20 Aug 2010 14:59:10 +0200 Original-Received: from ceviche.home ([83.61.35.93]) by IMPmailhost4.adm.correo with BIZ IMP id wcz91e00B20aCvn1kczAn2; Fri, 20 Aug 2010 14:59:10 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Original-Received: by ceviche.home (Postfix, from userid 20848) id 61E72660E9; Fri, 20 Aug 2010 14:59:09 +0200 (CEST) In-Reply-To: (Lennart Borgman's message of "Fri, 20 Aug 2010 03:11:21 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 20 Aug 2010 08:59:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:39661 Archived-At: >>> Normally in my own code I just fix all the issues I see on the fly so >>> to say. That is faster since I have already looked at the code then >>> and knows what to do. Later (which may be much later) I might forget >>> about exactly how to do it. >> I have my own branch with a hodge-podge of changes in random order. >> When I want to install a change from there to the trunk, I do a diff of >> the relevant files and then pick the relevant parts and add >> a ChangeLog message. > Seems easiest, but I am not sure how to make the diff file. By "I do a diff of the relevant files", I meant "bzr diff -rsubmit: ", or rather C-u C-x v = s[TAB] RET RET. By "pick the relevant parts", I meant: - go to the *vc-diff* buffer - M-x cd RET /my/checkout/of/the/trunk RET - apply C-c C-a to the hunks I want to pick - edit to clean up, improve, ... - save the modified files. - do C-x v = on the modified files, to see the patch I'm about to commit to trunk (or to send it via email). > I just edited the diff file I had. Does this work, Depends if you edited it well or not. > i.e. how does the program patch handle this? Again, depends if you edited it correctly or not. Have you tried it? > I have attached a patch done this way for just making linum-mode per > buffer instead of per major mode. Have you tried the patch and confirmed that it works and fixes your problem? I see it lacks the removal of change-major-mode-hook. Stefan