From unknown Fri Jun 20 07:09:56 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#16692 <16692@debbugs.gnu.org> To: bug#16692 <16692@debbugs.gnu.org> Subject: Status: 24.2; nlinum version 1.2 does not work correctly with indirect buffers Reply-To: bug#16692 <16692@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:09:56 +0000 retitle 16692 24.2; nlinum version 1.2 does not work correctly with indirec= t buffers reassign 16692 emacs submitter 16692 mdl@alum.mit.edu severity 16692 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 08 14:30:45 2014 Received: (at submit) by debbugs.gnu.org; 8 Feb 2014 19:30:45 +0000 Received: from localhost ([127.0.0.1]:58135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCDbw-0006oH-Hp for submit@debbugs.gnu.org; Sat, 08 Feb 2014 14:30:45 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46436) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCDbr-0006o2-Hr for submit@debbugs.gnu.org; Sat, 08 Feb 2014 14:30:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCDbj-0003Jg-O6 for submit@debbugs.gnu.org; Sat, 08 Feb 2014 14:30:39 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:38809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCDbj-0003JW-5K for submit@debbugs.gnu.org; Sat, 08 Feb 2014 14:30:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCDbc-0005pY-9A for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 14:30:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCDbV-0003Ga-LM for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 14:30:24 -0500 Received: from alum-mailsec-scanner-2.mit.edu ([18.7.68.13]:43749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCDbV-0003GV-HQ for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 14:30:17 -0500 X-AuditID: 1207440d-f78fe6d000000b32-d4-52f685c93c4f Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33]) by alum-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP id B1.A6.02866.9C586F25; Sat, 8 Feb 2014 14:30:17 -0500 (EST) Received: from foil.strangled.net (c-67-188-232-141.hsd1.ca.comcast.net [67.188.232.141]) (authenticated bits=0) (User authenticated as mdl@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id s18JUEZ5015159 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 8 Feb 2014 14:30:15 -0500 From: Mark Lillibridge To: bug-gnu-emacs@gnu.org, monnier@iro.umontreal.ca Subject: 24.2; nlinum version 1.2 does not work correctly with indirect buffers Date: Sat, 08 Feb 2014 11:30:48 -0800 Message-ID: <87ob2hxuzb.fsf@foil.strangled.net> MIME-Version: 1.0 Content-Type: text/plain X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGIsWRmVeSWpSXmKPExsUixO6iqHuy9VuQwcefzBbfD1RZTP14hs3i 26+tzA7MHn/ff2DyaJtm5rH+zV6mAOYobpukxJKy4Mz0PH27BO6M1gW5BVfkK45u28jawLhJ souRk0NCwERixrnVrBC2mMSFe+vZuhi5OIQELjNK3Pt8ngnCucIkcfrhXWaQKjYBTYnpz76z g9giAsYSNxesZgKxhQX8JZbN+c4IYgsJSEksXXQCrIZFQFXi7uatYL28AvoSh65cZIKwBSVO znzCAmIzC0hIHHzxgnkCI88sJKlZSFILGJlWMcol5pTm6uYmZuYUpybrFicn5uWlFuka6eVm luilppRuYoSEEO8Oxv/rZA4xCnAwKvHwNmh8DRJiTSwrrsw9xCjJwaQkystf+y1IiC8pP6Uy I7E4I76oNCe1+BCjBAezkggvG0iONyWxsiq1KB8mJc3BoiTOq7ZE3U9IID2xJDU7NbUgtQgm K8PBoSTBO6sFqFGwKDU9tSItM6cEIc3EwQkynEtKpDg1LyW1KLG0JCMeFDHxxcCYAUnxAO2d ANLOW1yQmAsUhWg9xWjM0XP/8x9GjnvHv/5hFGLJy89LlRLnDQIpFQApzSjNg1sESx6vGMWB /hbm3QJSxQNMPHDzXgGtYgJatfrjF5BVJYkIKakGxry664fWfvp1PspxwfHEZLGirOtHHnTM eHHQx3ax9oQv68/5smsc0Vy1vvfH34LUKOUb811TD5TPLxdXZxfW573rKOFnfkN8ibzJgrAN C/mi8vbM6E1IarG5nKK7fppZ15XPRrGNC0N822XkRB/ICOhyCe00Tuo1F+BW0W9ycbDfmxWz 6/V9JZbijERDLeai4kQAhEQZ1fkCAAA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: mdl@alum.mit.edu 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: -4.0 (----) This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': emacs24 -q ; substitute below path to your copy of nlinum: {esc}: (load "/home/mdl/elisp/nlinum") {esc}x global-nlinum-mode {enter} {ctrl+x}b *scratch* {enter} {ctrl+x}4c Hit enter multiple times; observe that line numbers for the new lines appear in the original buffer but not the indirect buffer you are currently in. This is a bug: line numbers should be present for every line in both buffers. Type some more text. Same effect. Switch to the original buffer via {ctrl+x}o Insert some text here. Note line numbers still missing in indirect buffer. In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2013-11-24 on foil Windowing system distributor `The Cygwin/X Project', version 11.0.11403000 Configured using: `configure '--prefix=/home/mdl/bin/emacs-24.2' '--without-gif'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: global-nlinum-mode: t nlinum-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: o t h e r SPC n i t o r SPC k SPC C-u 3 G C-: C-g : C-y x C-y C-x b C-y C-x 4 c h e l l o C-x o d f b h j d k d x b u g C-g x b u g - r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. scroll-up-command: End of buffer [3 times] Quit Loading /home/mdl/elisp/nlinum...done t Global-Nlinum mode enabled Quit Making completion list... [2 times] Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu view cus-start cus-load nlinum linum time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dynamic-setting font-render-setting x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 08 14:46:03 2014 Received: (at 16692) by debbugs.gnu.org; 8 Feb 2014 19:46:03 +0000 Received: from localhost ([127.0.0.1]:58148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCDqk-0008LQ-Bm for submit@debbugs.gnu.org; Sat, 08 Feb 2014 14:46:02 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:61422) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCDqg-0008Ij-NQ for 16692@debbugs.gnu.org; Sat, 08 Feb 2014 14:46:00 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N0O00A00ZZBY000@a-mtaout20.012.net.il> for 16692@debbugs.gnu.org; Sat, 08 Feb 2014 21:45:57 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N0P00AO208HSP30@a-mtaout20.012.net.il>; Sat, 08 Feb 2014 21:45:53 +0200 (IST) Date: Sat, 08 Feb 2014 21:45:44 +0200 From: Eli Zaretskii Subject: Re: bug#16692: 24.2; nlinum version 1.2 does not work correctly with indirect buffers In-reply-to: <87ob2hxuzb.fsf@foil.strangled.net> X-012-Sender: halo1@inter.net.il To: mdl@alum.mit.edu Message-id: <838utlwfpz.fsf@gnu.org> References: <87ob2hxuzb.fsf@foil.strangled.net> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 16692 Cc: 16692@debbugs.gnu.org, monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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: 1.0 (+) > From: Mark Lillibridge > Date: Sat, 08 Feb 2014 11:30:48 -0800 > > emacs24 -q > ; substitute below path to your copy of nlinum: > {esc}: (load "/home/mdl/elisp/nlinum") > > {esc}x global-nlinum-mode {enter} > {ctrl+x}b *scratch* {enter} > > {ctrl+x}4c (Whatever happened to the Emacs convention of specifying keystrokes?) > Hit enter multiple times; observe that line numbers for the new > lines appear in the original buffer but not the indirect buffer you > are currently in. This is a bug: line numbers should be present for > every line in both buffers. Stefan in help-gnu-emacs: My recommendation: stay away from indirect-buffers. They are an attractive-nuisance. See http://lists.gnu.org/archive/html/help-gnu-emacs/2014-01/msg00575.html From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 08 15:00:35 2014 Received: (at 16692) by debbugs.gnu.org; 8 Feb 2014 20:00:35 +0000 Received: from localhost ([127.0.0.1]:58168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCE4o-0000Jy-LY for submit@debbugs.gnu.org; Sat, 08 Feb 2014 15:00:34 -0500 Received: from alum-mailsec-scanner-7.mit.edu ([18.7.68.19]:57767) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCE4l-0000Jp-Fw for 16692@debbugs.gnu.org; Sat, 08 Feb 2014 15:00:32 -0500 X-AuditID: 12074413-f78fe6d000000a9e-5f-52f68cdecaff Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33]) by alum-mailsec-scanner-7.mit.edu (Symantec Messaging Gateway) with SMTP id FE.B1.02718.EDC86F25; Sat, 8 Feb 2014 15:00:30 -0500 (EST) Received: from foil.strangled.net (c-67-188-232-141.hsd1.ca.comcast.net [67.188.232.141]) (authenticated bits=0) (User authenticated as mdl@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id s18K0Rd8016352 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 8 Feb 2014 15:00:29 -0500 From: Mark Lillibridge To: Eli Zaretskii Subject: Re: bug#16692: 24.2; nlinum version 1.2 does not work correctly with indirect buffers In-Reply-To: <838utlwfpz.fsf@gnu.org> (message from Eli Zaretskii on Sat, 08 Feb 2014 21:45:44 +0200) Date: Sat, 08 Feb 2014 12:01:02 -0800 Message-ID: <87iospxtkx.fsf@foil.strangled.net> MIME-Version: 1.0 Content-Type: text/plain X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjleLIzCtJLcpLzFFi42IRYndR1L3X8y3IYO41HYuzS8+yW7y8cpTZ YurHM2wW335tZXZg8fj7/gOTx8VJ+5g92qaZeax/s5cpgCWK2yYpsaQsODM9T98ugTvjUdM0 poKXLBVb9nM2MN5n7mLk4JAQMJH48dKwi5ETyBSTuHBvPVsXIxeHkMBlRoldTS+gnCtMEvPb nrGDVLEJaEpMf/YdzBYRUJC4+/I2I8ggZgFjid4tuSBhYYE4if/NV8BKOAVSJZb+2cwMYgsJ SEksXXQCLM4ioCox4flEdpBWXgF9ieV9OSBhXgFBiZMzn7CA2MwCEhIHX7xgnsDINwtJahaS 1AJGplWMcok5pbm6uYmZOcWpybrFyYl5ealFuuZ6uZkleqkppZsYISEovINx10m5Q4wCHIxK PLydAt+ChFgTy4orcw8xSnIwKYny8tcChfiS8lMqMxKLM+KLSnNSiw8xSnAwK4nwsoHkeFMS K6tSi/JhUtIcLErivGpL1P2EBNITS1KzU1MLUotgsjIcHEoSvPLAWBMSLEpNT61Iy8wpQUgz cXCCDOeSEilOzUtJLUosLcmIB8VWfDEwukBSPEB7hUHaeYsLEnOBohCtpxiNOc6s+vSHkaPn /uc/jEIsefl5qVLivGkgpQIgpRmleXCLYMnnFaM40N/CvNYgVTzAxAU37xXQKiagVas/fgFZ VZKIkJJqYCzr3jJVO77D4e6+OwlnN7Dq2y5c+7LwdoZRuURz4NdoZ6cPMRWsdXqqOeY7Jn16 /SJJUKu7J+ISe6d65heXP5tiVDPsVR4/+ZB4JGvNtfl+haZFNyW0/k4K3VMzN+SGS8dPHeO2 L0IsWz805s/00nrUNV/8sMXq7ZrVCd/n2t59andCN/xFkhJLcUaioRZzUXEiAHi1agkZAwAA X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 16692 Cc: 16692@debbugs.gnu.org, monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: mdl@alum.mit.edu 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: -2.8 (--) Eli Zaretskii writes: > Stefan in help-gnu-emacs: > > My recommendation: stay away from indirect-buffers. > They are an attractive-nuisance. > > See > > http://lists.gnu.org/archive/html/help-gnu-emacs/2014-01/msg00575.html Is there a good alternative for editing several places in the same file at once? E.g., a C++ header file with the class part with declarations at the top and the inlined member definitions at the end of the same file. I find myself losing one of my places when I have to switch to a different buffer and back again. - Thanks, Mark From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 08 15:13:30 2014 Received: (at 16692) by debbugs.gnu.org; 8 Feb 2014 20:13:30 +0000 Received: from localhost ([127.0.0.1]:58208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCEHJ-0000hh-DM for submit@debbugs.gnu.org; Sat, 08 Feb 2014 15:13:29 -0500 Received: from mtaout26.012.net.il ([80.179.55.182]:55638) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCEHG-0000hU-BD for 16692@debbugs.gnu.org; Sat, 08 Feb 2014 15:13:27 -0500 Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0N0P0010013O6T00@mtaout26.012.net.il> for 16692@debbugs.gnu.org; Sat, 08 Feb 2014 22:12:10 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N0P00LVN1G97L60@mtaout26.012.net.il>; Sat, 08 Feb 2014 22:12:10 +0200 (IST) Date: Sat, 08 Feb 2014 22:13:16 +0200 From: Eli Zaretskii Subject: Re: bug#16692: 24.2; nlinum version 1.2 does not work correctly with indirect buffers In-reply-to: <87iospxtkx.fsf@foil.strangled.net> X-012-Sender: halo1@inter.net.il To: mdl@alum.mit.edu Message-id: <8338jtweg3.fsf@gnu.org> References: <87iospxtkx.fsf@foil.strangled.net> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 16692 Cc: 16692@debbugs.gnu.org, monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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: 1.0 (+) > From: Mark Lillibridge > Cc: 16692@debbugs.gnu.org, monnier@iro.umontreal.ca > Date: Sat, 08 Feb 2014 12:01:02 -0800 > > Is there a good alternative for editing several places in the same > file at once? E.g., a C++ header file with the class part with > declarations at the top and the inlined member definitions at the end of > the same file. I find myself losing one of my places when I have to > switch to a different buffer and back again. There are various packages that allow saving and restoring positions, starting with the mark ring and bookmarks. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 08 18:44:52 2014 Received: (at 16692) by debbugs.gnu.org; 8 Feb 2014 23:44:53 +0000 Received: from localhost ([127.0.0.1]:58370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCHZs-0001Gi-CE for submit@debbugs.gnu.org; Sat, 08 Feb 2014 18:44:52 -0500 Received: from mail-wg0-f52.google.com ([74.125.82.52]:44167) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCHZp-0001GY-2W for 16692@debbugs.gnu.org; Sat, 08 Feb 2014 18:44:49 -0500 Received: by mail-wg0-f52.google.com with SMTP id b13so3185513wgh.31 for <16692@debbugs.gnu.org>; Sat, 08 Feb 2014 15:44:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=FI7aR+Z5EDeYt2xLqkJtY4LF+4itdF41jgdYjtWHt2U=; b=VyfO//48Sfyba84ggl4UAoxRaKMdT5Hkr9VfYfx5+0MjsdA8leRZ5e7jmxwn2bDHoj O/OX7mOxMNxhmu0b/8//I3OjKNeh9RUmLgaqMyreM9WAwVH0J6L3X51k87xxsANFvc4M 9qH2VPGwsTBVJivZToHf4WATwOzR3x2SxVJxyfpx6u4MAzYtAOF78lKHoMuNxuHHzGM7 j5O2F9y3P95rW9v04E4axMk5Eikplx92bUJQB71QSeY5tZgXqSfu5TxmePy/NzyzszEa E03WOuS5Jgz+WsfQ8rFb46symo3Ai+Te8/+xcH0C+KadZolZi9iar36ZQkGkf3N/1mPO pivw== MIME-Version: 1.0 X-Received: by 10.194.110.41 with SMTP id hx9mr16412609wjb.28.1391903087866; Sat, 08 Feb 2014 15:44:47 -0800 (PST) Received: by 10.194.238.162 with HTTP; Sat, 8 Feb 2014 15:44:47 -0800 (PST) In-Reply-To: <8338jtweg3.fsf@gnu.org> References: <87iospxtkx.fsf@foil.strangled.net> <8338jtweg3.fsf@gnu.org> Date: Sat, 8 Feb 2014 18:44:47 -0500 Message-ID: Subject: Re: bug#16692: 24.2; nlinum version 1.2 does not work correctly with indirect buffers From: Alp Aker To: Eli Zaretskii Content-Type: multipart/alternative; boundary=089e010d89e01d37a904f1edb16d X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16692 Cc: mdl@alum.mit.edu, 16692@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (/) --089e010d89e01d37a904f1edb16d Content-Type: text/plain; charset=ISO-8859-1 > Is there a good alternative for editing several places in the same > file at once? E.g., a C++ header file with the class part with > declarations at the top and the inlined member definitions at the end of > the same file. I find myself losing one of my places when I have to > switch to a different buffer and back again. You might want to try setting switch-to-buffer-preserve-window-point to t. --089e010d89e01d37a904f1edb16d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
> Is there a good alternative for editing several = places in the same
> file at once? =A0E.g., a C++ header file with th= e class part with
> declarations at the top and the inlined member de= finitions at the end of
> the same file. =A0I find myself losing one of my places when I have to=
> switch to a different buffer and back again.

You migh= t want to try setting switch-to-buffer-preserve-window-point to t.
--089e010d89e01d37a904f1edb16d-- From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 12:15:10 2014 Received: (at 16692) by debbugs.gnu.org; 18 Feb 2014 17:15:10 +0000 Received: from localhost ([127.0.0.1]:58675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFoGD-0005rl-6S for submit@debbugs.gnu.org; Tue, 18 Feb 2014 12:15:10 -0500 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:35981) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFoG9-0005ra-Ab for 16692@debbugs.gnu.org; Tue, 18 Feb 2014 12:15:06 -0500 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 1F24B84CED; Tue, 18 Feb 2014 12:15:05 -0500 (EST) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 963991E5913; Tue, 18 Feb 2014 12:14:40 -0500 (EST) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 7CCB1B40FE; Tue, 18 Feb 2014 12:14:40 -0500 (EST) From: Stefan Monnier To: Mark Lillibridge Subject: Re: 24.2; nlinum version 1.2 does not work correctly with indirect buffers Message-ID: References: <87ob2hxuzb.fsf@foil.strangled.net> Date: Tue, 18 Feb 2014 12:14:40 -0500 In-Reply-To: <87ob2hxuzb.fsf@foil.strangled.net> (Mark Lillibridge's message of "Sat, 08 Feb 2014 11:30:48 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 16692 Cc: 16692@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -2.9 (--) > Hit enter multiple times; observe that line numbers for the new > lines appear in the original buffer but not the indirect buffer you > are currently in. This is a bug: line numbers should be present for > every line in both buffers. The core of the problem is that jit-lock relies on text-properties, i.e. data shared between the indirect buffers, but is run "per buffer". This can be seen also when you use two indirect buffers in different major modes, where the font-lock behavior can be erratic, mixing the rules of the different major modes. I installed a patch which prevents activation of jit-lock in indirect buffers. In practice this means that nlinum-mode should now work correctly in the base buffer but will not work at all in the indirect buffer. IOW, problem is still present but it fails more cleanly ;-) Stefan From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 23 13:48:08 2014 Received: (at 16692) by debbugs.gnu.org; 23 Feb 2014 18:48:08 +0000 Received: from localhost ([127.0.0.1]:36892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHe5v-0005Vs-PC for submit@debbugs.gnu.org; Sun, 23 Feb 2014 13:48:08 -0500 Received: from alum-mailsec-scanner-8.mit.edu ([18.7.68.20]:50137) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHe5s-0005VK-H1 for 16692@debbugs.gnu.org; Sun, 23 Feb 2014 13:48:05 -0500 X-AuditID: 12074414-f79d96d000002d2b-33-530a425e3373 Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33]) by alum-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP id D9.68.11563.E524A035; Sun, 23 Feb 2014 13:47:58 -0500 (EST) Received: from foil.strangled.net (c-67-188-232-141.hsd1.ca.comcast.net [67.188.232.141]) (authenticated bits=0) (User authenticated as mdl@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id s1NIluMo016205 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 23 Feb 2014 13:47:57 -0500 From: Mark Lillibridge To: Stefan Monnier Subject: Re: 24.2; nlinum version 1.2 does not work correctly with indirect buffers In-Reply-To: (message from Stefan Monnier on Tue, 18 Feb 2014 12:14:40 -0500) Date: Sun, 23 Feb 2014 10:49:04 -0800 Message-ID: <878ut1wtpb.fsf@foil.strangled.net> MIME-Version: 1.0 Content-Type: text/plain X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrJIsWRmVeSWpSXmKPExsUixO6iqBvnxBVs0DHHxuLs0rPsFlM/nmGz +PZrK7MDs8ff9x+YPC5O2sfssf7NXqYA5ihum6TEkrLgzPQ8fbsE7owpN14zFfziqHiw8C1r A+N7ti5GTg4JAROJ02c2sULYYhIX7q0HinNxCAlcZpToWXUWyrnKJHGlZSczSBWbgKbE9Gff 2UFsEQFdiRPfzgJ1c3AwC0hKtHzKATGFBYIlvixQA6ngFKiU6DswjxHEFhKQkli66ARYJ4uA qsSxlhlgE3kF9CW2vPrEBmELSpyc+YQFxGYWkJA4+OIF8wRGvllIUrOQpBYwMq1ilEvMKc3V zU3MzClOTdYtTk7My0st0rXQy80s0UtNKd3ECAk6kR2MR07KHWIU4GBU4uF1SGUPFmJNLCuu zD3EKMnBpCTKO92UK1iILyk/pTIjsTgjvqg0J7X4EKMEB7OSCG+zBVCONyWxsiq1KB8mJc3B oiTO+22xup+QQHpiSWp2ampBahFMVoaDQ0mCt8cRqFGwKDU9tSItM6cEIc3EwQkynEtKpDg1 LyW1KLG0JCMeFF/xxcAIA0nxAO1tA2nnLS5IzAWKQrSeYtTlOLvv9ydGIZa8/LxUKXFeGZAi AZCijNI8uBWwFPOKURzoY2HeXJAqHmB6gpv0CmgJE9CSQgsOkCUliQgpqQZGviM7QjWuxZfm RX/bseIS56q1V2/oBh14OGfVRdESjRvXvr0Q+ld3x+GKhdKmuU2Jj3rmtR/WjzzzqLCHX08l zeBg7P+8Z7oz2ywu5VkWHWlXP3ht/YN8Qz6nTQlq06W2HPF6sF+oN2/G4ReHGv4s9P/qwS/a U1Dn+3fPGsU3UUznv56Idl50WImlOCPRUIu5qDgRAJ1BfdUMAwAA X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 16692 Cc: 16692@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: mdl@alum.mit.edu 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: -2.8 (--) Stefan Monnier writes: > > Hit enter multiple times; observe that line numbers for the new > > lines appear in the original buffer but not the indirect buffer you > > are currently in. This is a bug: line numbers should be present for > > every line in both buffers. > > The core of the problem is that jit-lock relies on text-properties, > i.e. data shared between the indirect buffers, but is run "per buffer". > This can be seen also when you use two indirect buffers in different > major modes, where the font-lock behavior can be erratic, mixing the > rules of the different major modes. > > I installed a patch which prevents activation of jit-lock in indirect > buffers. In practice this means that nlinum-mode should now work > correctly in the base buffer but will not work at all in the > indirect buffer. > IOW, problem is still present but it fails more cleanly ;-) Check. Indirect buffers are horribly broken; so noted. I will try some of the other recommended methods of dealing with multiple edit points in the same buffer. - Mark From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 24 15:56:48 2014 Received: (at control) by debbugs.gnu.org; 24 Feb 2014 20:56:48 +0000 Received: from localhost ([127.0.0.1]:38226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WI2a0-0005tG-6s for submit@debbugs.gnu.org; Mon, 24 Feb 2014 15:56:48 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:3579) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WI2Zx-0005t0-D5 for control@debbugs.gnu.org; Mon, 24 Feb 2014 15:56:45 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EABK/CFFsoXjX/2dsb2JhbABEvw4Xc4IfAQVWMws0EhQYDYhIwS2NYYMpA4hhnBmBXoMV X-IPAS-Result: Av0EABK/CFFsoXjX/2dsb2JhbABEvw4Xc4IfAQVWMws0EhQYDYhIwS2NYYMpA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="48643008" Received: from 108-161-120-215.dsl.teksavvy.com (HELO pastel.home) ([108.161.120.215]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 24 Feb 2014 15:56:39 -0500 Received: by pastel.home (Postfix, from userid 20848) id 919C060054; Mon, 24 Feb 2014 15:56:39 -0500 (EST) From: Stefan Monnier To: control@debbugs.gnu.org Subject: Re: 24.2; nlinum version 1.2 does not work correctly with indirect buffers Message-ID: References: <878ut1wtpb.fsf@foil.strangled.net> Date: Mon, 24 Feb 2014 15:56:39 -0500 In-Reply-To: <878ut1wtpb.fsf@foil.strangled.net> (Mark Lillibridge's message of "Sun, 23 Feb 2014 10:49:04 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (/) close 16692 thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 01 14:55:50 2014 Received: (at 16692) by debbugs.gnu.org; 1 Mar 2014 19:55:51 +0000 Received: from localhost ([127.0.0.1]:46988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJq0k-0004l7-5t for submit@debbugs.gnu.org; Sat, 01 Mar 2014 14:55:50 -0500 Received: from alum-mailsec-scanner-6.mit.edu ([18.7.68.18]:44994) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJq0h-0004ky-CU for 16692@debbugs.gnu.org; Sat, 01 Mar 2014 14:55:47 -0500 X-AuditID: 12074412-f79d46d000002e58-88-53123b423870 Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33]) by alum-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP id 67.25.11864.24B32135; Sat, 1 Mar 2014 14:55:46 -0500 (EST) Received: from foil.strangled.net (c-67-188-232-141.hsd1.ca.comcast.net [67.188.232.141]) (authenticated bits=0) (User authenticated as mdl@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id s21Jti3f011674 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 1 Mar 2014 14:55:45 -0500 From: Mark Lillibridge To: Alp Aker Subject: Re: bug#16692: 24.2; nlinum version 1.2 does not work correctly with indirect buffers In-Reply-To: (message from Alp Aker on Sat, 8 Feb 2014 18:44:47 -0500) Date: Sat, 01 Mar 2014 11:57:05 -0800 Message-ID: <8738j1d75a.fsf@foil.strangled.net> MIME-Version: 1.0 Content-Type: text/plain X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmleLIzCtJLcpLzFFi42IRYndR1HWyFgo2OLhCz+Ls0rPsFi9+XmS2 eHnlKLPF1I9n2BxYPP6+/8DkcXHSPmaPnbPusnu0TTMLYInitklKLCkLzkzP07dL4M7YN/sU a8ENloqXizrZGhjPMXcxcnJICJhIzGteyA5hi0lcuLeerYuRi0NI4DKjxNwV36GcK0wS7dMm soBUsQloSkx/9h2sQ0RATWLRn7+MIDazgLrEhCPtYFOFBRIklnT0MoM0cwp0M0pMfbCMFSQh JCAlsXTRCbBmFgFViRsTNoDFeQX0JR7dus8CYQtKnJz5hAViqITEwRcvmCcw8s1CkpqFJLWA kWkVo1xiTmmubm5iZk5xarJucXJiXl5qka6ZXm5miV5qSukmRkgwCu1gXH9S7hCjAAejEg/v gfkCwUKsiWXFlbmHGCU5mJREeWdbCAUL8SXlp1RmJBZnxBeV5qQWH2KU4GBWEuE9zwKU401J rKxKLcqHSUlzsCiJ8/5crO4nJJCeWJKanZpakFoEk5Xh4FCS4H0PMlSwKDU9tSItM6cEIc3E wQkynEtKpDg1LyW1KLG0JCMeFGXxxcA4A0nxAO29Zwmyt7ggMRcoCtF6itGYo7Px1ydGjrP7 fn9iFGLJy89LlRLndbYCKhUAKc0ozYNbBEtDrxjFgf4W5n0HMpAHmMLg5r0CWsUEtKplvwDI qpJEhJRUA+OULdW6NTc0NNkNl5hNf93lIM1UYjtNjO/Lof19hzeuUEzs+dbrtTUxRemn8qIJ vyqChZ1urX+hZbxs0qlnXzzVj8rxfvkr6tdvlPp7x/Xfr6trUs+K9twOnWk+5f1ZkSUGnBe9 hEVMLQ1+JLk/5Kro11a47HpRVfNs54IvNy/zX1lqWRF06bgSS3FGoqEWc1FxIgB9n74AHgMA AA== X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 16692 Cc: eliz@gnu.org, 16692@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: mdl@alum.mit.edu 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: -2.3 (--) Alp Aker writes: > > Is there a good alternative for editing several places in the same > > file at once? E.g., a C++ header file with the class part with > > declarations at the top and the inlined member definitions at the end of > > the same file. I find myself losing one of my places when I have to > > switch to a different buffer and back again. > > You might want to try setting switch-to-buffer-preserve-window-point to t. When did this get added to Emacs? The web claims version 24 but I don't see it in version 24.2 ... - Thanks, Mark From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 01 15:04:14 2014 Received: (at 16692) by debbugs.gnu.org; 1 Mar 2014 20:04:14 +0000 Received: from localhost ([127.0.0.1]:46994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJq8r-000511-J8 for submit@debbugs.gnu.org; Sat, 01 Mar 2014 15:04:14 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]:63012) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJq8p-00050r-En for 16692@debbugs.gnu.org; Sat, 01 Mar 2014 15:04:12 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N1R00A00WWPHD00@a-mtaout22.012.net.il> for 16692@debbugs.gnu.org; Sat, 01 Mar 2014 22:04:09 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1R00AFFX2X3CA0@a-mtaout22.012.net.il>; Sat, 01 Mar 2014 22:04:09 +0200 (IST) Date: Sat, 01 Mar 2014 22:04:01 +0200 From: Eli Zaretskii Subject: Re: bug#16692: 24.2; nlinum version 1.2 does not work correctly with indirect buffers In-reply-to: <8738j1d75a.fsf@foil.strangled.net> X-012-Sender: halo1@inter.net.il To: mdl@alum.mit.edu Message-id: <83wqgdu1n2.fsf@gnu.org> References: <8738j1d75a.fsf@foil.strangled.net> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 16692 Cc: alptekin.aker@gmail.com, 16692@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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: 1.0 (+) > From: Mark Lillibridge > Cc: eliz@gnu.org, 16692@debbugs.gnu.org > Date: Sat, 01 Mar 2014 11:57:05 -0800 > > > > You might want to try setting switch-to-buffer-preserve-window-point to t. > > When did this get added to Emacs? In Emacs 24.3, according to NEWS. From unknown Fri Jun 20 07:09:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 30 Mar 2014 11:24:06 +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