From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.devel Subject: Re: Native line numbers, final testing Date: Tue, 04 Jul 2017 11:50:44 -0600 Message-ID: <87lgo4ccqz.fsf@lylat> References: <83y3s9pm2a.fsf@gnu.org> <83zicmntaq.fsf@gnu.org> <83van9o6l8.fsf@gnu.org> <83mv8knuhi.fsf@gnu.org> <83fuecnr4p.fsf@gnu.org> <83d19gnocd.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1499190700 29743 195.159.176.226 (4 Jul 2017 17:51:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Jul 2017 17:51:40 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Richard Copley , filipe.silva@gmail.com, james@jojojames.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 04 19:51:32 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSRz0-0007IZ-VF for ged-emacs-devel@m.gmane.org; Tue, 04 Jul 2017 19:51:31 +0200 Original-Received: from localhost ([::1]:42446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSRz6-0000MI-EW for ged-emacs-devel@m.gmane.org; Tue, 04 Jul 2017 13:51:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSRyY-0000M1-Uv for emacs-devel@gnu.org; Tue, 04 Jul 2017 13:51:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSRyV-000306-Sf for emacs-devel@gnu.org; Tue, 04 Jul 2017 13:51:03 -0400 Original-Received: from mail-io0-x243.google.com ([2607:f8b0:4001:c06::243]:33751) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSRyV-0002zC-Mu; Tue, 04 Jul 2017 13:50:59 -0400 Original-Received: by mail-io0-x243.google.com with SMTP id z62so11473619ioi.0; Tue, 04 Jul 2017 10:50:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=JYoP5d4czUz5JOFOikFEGASkbqDPIYV0isB12AKxOx0=; b=asvj7yKoh+LLK7HSFw0PyVOBG1O79VjLtB5dJ0QBSA219tad2ytHYAWjJB4DV99HYD m1sZoRr3MEVy6p5En2x8PqZq1QBtlQr4u3rBwaES1trEtKoaAb5EkDjUX+7SE3ihVxVi XlJ3sUq/wzRjgczbTE07ePqLNg47SoaszM4UlFutPbrcOsHX7cIuFeRZsbfYGX1K6sj/ trWaD6s4rk5N0nTyMeiHwpHD/UJNtfm4RNkzTnU9cEPVbr25UIl5K8vjd57BHWLNoDlQ x+5Zg3EAb7l03O3Q09zisf+sgK30vItfCqubGgKcIfc14dNfSL+oHQUepAL4DvvKXJ/U iKJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=JYoP5d4czUz5JOFOikFEGASkbqDPIYV0isB12AKxOx0=; b=hT2+WDnu7ovuXQK+5AnSK5QT1rILtB2JJ7FXRE2e/rqE7KEILNt20uwDyg7qrmbNuk e/zqpCV1krVjkfCl+oTtUONY/B5DOLvpyMSfcYH+A4JuOvqMIC6SVRRGRy9Ib+OrB7Ii zX7vAAMP4h2WaIOVpHoBCC6ACt3h1DXRwRS5KmdhHbYP6QEVC6dr10pHrpW4jlw8uNoB XnLAF2WkxiXv5CldahTVczIknJgIZRT0r6lgYeUjl4a5y5RMm6QjfbZB8rpnxN8eIV4V mFbZKvuDlrIr08NHv3hjlKIW3Bp70Ls6QpOFNb26QjcUVh7Y2dchKjgBJdZ70Fd19Pt8 YGiA== X-Gm-Message-State: AKS2vOw2dGPVabzFi+xLc9ywGAxNq49OAF4smMX31R+aarlyEFaNMc0b xDNCPQS/GEmnXQ== X-Received: by 10.107.130.229 with SMTP id m98mr41955037ioi.140.1499190657268; Tue, 04 Jul 2017 10:50:57 -0700 (PDT) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id g198sm7943414itb.3.2017.07.04.10.50.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Jul 2017 10:50:56 -0700 (PDT) In-Reply-To: <83d19gnocd.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 04 Jul 2017 19:44:50 +0300") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::243 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216167 Archived-At: Eli Zaretskii writes: >> From: Richard Copley >> Date: Tue, 4 Jul 2017 17:35:16 +0100 >> Cc: Eli Zaretskii , james@jojojames.com, >> Emacs developers >> >> C-d 0 C-b C-n >> C-d 1 C-b C-n >> C-d 2 C-p C-p >> >> This is supposed to change the character at point to 0 and the >> characters in the corresponding column in the next two lines to 1 >> and 2. >> >> I think that's a common use case and it won't work if >> display-line-numbers is on ... > > Does it really not work for you with display-line-numbers on? > >> Open xdisp.c and go to line 30, column 30. >> Type "C-d C-n C-d C-n C-d C-n C-d C-n" >> The first C-n goes to column 30 on line 31 as expected. >> The 2nd C-n goes to column 29 on line 31 (expected column 30). >> The 3rd C-n goes to column 28 on line 31 (expected 30 (or 29?)). >> The 4th C-n goes to column 27 on line 31. > > I cannot reproduce this, I get column 30 all the time, as expected. > > Are you running the latest branch? If so, what are the values of the > related variables? Here's an attempt at a relevant macro: C-n C-d 1 C-p DEL 0 C-b This replaces the character at point to 0, and the one below it to 1. Now go into xdisp.c and set display-line-numbers to t: M-g c 2960 C-17 C-n C-x e Notice that it's the previous columns that are changed, and not the current column.