From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joshua Lambert Newsgroups: gmane.emacs.help Subject: Re: Correct use of text properties? Date: Thu, 2 Mar 2023 11:20:47 -0600 Message-ID: References: <83sfenei8u.fsf@gnu.org> <83y1ofcfzs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10046"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 02 18:21:45 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pXmci-0002O8-Mu for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Mar 2023 18:21:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXmc4-0004Fo-6i; Thu, 02 Mar 2023 12:21:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXmc2-0004Ex-OP for help-gnu-emacs@gnu.org; Thu, 02 Mar 2023 12:21:02 -0500 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXmc0-0001pV-UC; Thu, 02 Mar 2023 12:21:02 -0500 Original-Received: by mail-wr1-x436.google.com with SMTP id j2so17254365wrh.9; Thu, 02 Mar 2023 09:21:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677777658; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=jdbqCQMmIUKkta8GR8hF+cOzL2XsOUdaCJoXuMYJVOY=; b=YuN18nSGoAlE8qb6SzHKd2ZwbstOH5G4s02IYhRIQiO8fH02mvZ3EUjfAdBYo/0d4b WTl74bt7KmLSZKFWIJ9C67sRrXVsPrgHMt836APRc3RuGX6RKjfZipqcr9jHeUhqw0hj waaptj7MmqJ0m9AcJA6nDZIlqbG8gykD0eFW0KDKWQNcWXwmxngGyDjDnTByYQI/ZfzD lxK9bXaQ3Si0Qx54cfTMwTndNw/vVwSqfikzlawKq0C+oNK6pJ803mH1+3fu+eQAefJk tgOgf8/Jp5aUpMOgExgxEaV+S+/tJUw7MgF+nlqADy0ketTuKt8pC8s4Yl2gHejFLXmk 4RBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677777658; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jdbqCQMmIUKkta8GR8hF+cOzL2XsOUdaCJoXuMYJVOY=; b=1x1qUbqG1OvQBwzCdlN9kEsbLU1Z3/3YF3Zz8W0qI6cFawS8HdcvL6jwSt53cQZbwz 6AVu9ssPUO+8MZhVsvoV1MLcNO3NObNAzURpyP7ngVIjm0FPnT/fdkx4D/xMdz6gF1Ww xDoIHG4hlpMY7G35l0YoutssBQjjw7w6SGW1GVkLLDn4rBfdPiTODkBBuxo8GMl8mHn8 bDZkZ1bHHmB20mWQ281SFux/MfGhGlcUtZBVkf38/1AsANMaegUIAuyWWrlY1w3rDY6y 0qB3XCG4EgebcEPvUkeJ21o2htI8FZJu/j+s60rm8kIqyPe864BOyI+Xbae3H2qVStSQ q5vQ== X-Gm-Message-State: AO0yUKVLpFc8m0aHZQZPv8JxSg7i4nhq4kePbgcpcKzjqVifoZIt8smW 3TcaQvmtZb3i2RrkYmVH58pUsKK41V3qGfSxyTH81/3G X-Google-Smtp-Source: AK7set8iDmXvMQl0JPSG+YxwtR4W0CuIFbezAWhTLPibkwbPGL4iIjZBOQbKUGqJCCRUo6It7ak/OpNsDbq6pFHCBcQ= X-Received: by 2002:a05:6000:180e:b0:2c5:a38f:ca2f with SMTP id m14-20020a056000180e00b002c5a38fca2fmr582708wrh.4.1677777658404; Thu, 02 Mar 2023 09:20:58 -0800 (PST) In-Reply-To: <83y1ofcfzs.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=jlambert.lis.tech@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142891 Archived-At: Thank you. That explains what I wanted to know. J. Lambert On Thu, Mar 2, 2023 at 9:48=E2=80=AFAM Eli Zaretskii wrote: > > > From: Joshua Lambert > > Date: Thu, 2 Mar 2023 09:25:20 -0600 > > Cc: help-gnu-emacs@gnu.org > > > > > Probably. But you don't describe the behavior you found surprising, > > > so it is hard to tell whether what you see is expected. Please tell > > > more about the behavior you observe that surprised you. > > > > In the modeline and with display-line-numbers-mode the line number is a= lways 1. > > That is expected. If you want to count screen lines, try setting > display-line-numbers to the value 'visual'. However, that will > display numbers relative to the current line, so maybe this is not > what you want. > > > Also, pointer motions such as move-end-of-line and forward-paragraph ju= mp to > > the end of the file. > > This is also expected. > > > Since I was adding newline characters as text properties, I > > thought the line numbers might increment as I moved point down past tho= se > > newlines. > > No, these properties only affect the display, not how Emacs counts > lines or moves point: those are still done on the actual buffer text. >