From unknown Sat Jun 21 12:26:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34952: files with/out final newline look the same no matter what Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Mar 2019 05:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 34952@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155331770416563 (code B ref -1); Sat, 23 Mar 2019 05:09:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Mar 2019 05:08:24 +0000 Received: from localhost ([127.0.0.1]:54911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7YtM-0004J4-5u for submit@debbugs.gnu.org; Sat, 23 Mar 2019 01:08:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7YtK-0004Ir-23 for submit@debbugs.gnu.org; Sat, 23 Mar 2019 01:08:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:51260) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7YtE-0003Ya-Oe for submit@debbugs.gnu.org; Sat, 23 Mar 2019 01:08:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7YtD-0000hT-7i for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 01:08:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,FROM_EXCESS_BASE64, RCVD_IN_DNSWL_NONE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7YtC-0003Xr-4m for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 01:08:15 -0400 Received: from catfish.maple.relay.mailchannels.net ([23.83.214.32]:27348) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7YtB-0003Wt-Gs for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 01:08:14 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 915C45C3FAD for ; Sat, 23 Mar 2019 05:08:10 +0000 (UTC) Received: from pdx1-sub0-mail-a59.g.dreamhost.com (unknown [100.96.28.55]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 559AD5C3EDA for ; Sat, 23 Mar 2019 05:08:10 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a59.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Sat, 23 Mar 2019 05:08:10 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Shrill-Absorbed: 6529818b40d8d688_1553317690422_2689604269 X-MC-Loop-Signature: 1553317690422:440357021 X-MC-Ingress-Time: 1553317690421 Received: from pdx1-sub0-mail-a59.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a59.g.dreamhost.com (Postfix) with ESMTP id 113D382D14 for ; Fri, 22 Mar 2019 22:08:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=0PisXRtoJGmghkzXXA3xMvDxC1I=; b=AzDy3mFSjbR/F28n NghP8UtXQOuXKrwH/D6oLmQLPkgIfOp1zVa2QmmnjjxXmi6Suf0+UM7252amfGPU Lni1TPtHhG7F8Cv4OEfdf0PPKG8gIvw+XFm1tLLVA63IUHyqKJNXMcbayt7O6QHX 5cvGsd8/jqjS2L3amGd4ryCwhEM= Received: from jidanni.org (114-41-29-221.dynamic-ip.hinet.net [114.41.29.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a59.g.dreamhost.com (Postfix) with ESMTPSA id 8936D81E58 for ; Fri, 22 Mar 2019 22:08:09 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a59 From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Date: Sat, 23 Mar 2019 13:08:06 +0800 Message-ID: <87zhpm18ll.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrjedvgdejlecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppeduudegrdeguddrvdelrddvvddunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepuddugedrgedurddvledrvddvuddprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.214.32 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.0 (/) indicate-empty-lines is great, but still doesn't show the user the difference between $ echo abcd > fileA $ echo -n abcd > fileB $ emacs file* Therefore some new variable is needed. No I'm not talking about writing files, I'm just talking about how they look when opened. From unknown Sat Jun 21 12:26:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34952: files with/out final newline look the same no matter what Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Mar 2019 07:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 34952@debbugs.gnu.org Received: via spool by 34952-submit@debbugs.gnu.org id=B34952.155332645529853 (code B ref 34952); Sat, 23 Mar 2019 07:35:01 +0000 Received: (at 34952) by debbugs.gnu.org; 23 Mar 2019 07:34:15 +0000 Received: from localhost ([127.0.0.1]:54953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7bAV-0007lR-1F for submit@debbugs.gnu.org; Sat, 23 Mar 2019 03:34:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7bAT-0007lE-4J for 34952@debbugs.gnu.org; Sat, 23 Mar 2019 03:34:13 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7bAN-0002WG-5I; Sat, 23 Mar 2019 03:34:07 -0400 Received: from [176.228.60.248] (port=2056 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h7bAM-0007pe-7D; Sat, 23 Mar 2019 03:34:06 -0400 Date: Sat, 23 Mar 2019 09:34:04 +0200 Message-Id: <83sgveoxhv.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <87zhpm18ll.fsf@jidanni.org> References: <87zhpm18ll.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=shift_jis Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) > From: ϒO Dan Jacobson > > Date: Sat, 23 Mar 2019 13:08:06 +0800 > > indicate-empty-lines is great, but still doesn't show the user the difference between > $ echo abcd > fileA > $ echo -n abcd > fileB > $ emacs file* > Therefore some new variable is needed. > No I'm not talking about writing files, I'm just talking about how they > look when opened. You want a visual indication of a newline? Then turn on whitespace-mode, it does that. From unknown Sat Jun 21 12:26:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34952: files with/out final newline look the same no matter what Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Mar 2019 01:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 34952@debbugs.gnu.org Received: via spool by 34952-submit@debbugs.gnu.org id=B34952.155338965815200 (code B ref 34952); Sun, 24 Mar 2019 01:08:01 +0000 Received: (at 34952) by debbugs.gnu.org; 24 Mar 2019 01:07:38 +0000 Received: from localhost ([127.0.0.1]:55922 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7rbu-0003x6-18 for submit@debbugs.gnu.org; Sat, 23 Mar 2019 21:07:38 -0400 Received: from mail-ed1-f44.google.com ([209.85.208.44]:43224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7rbr-0003ws-OT for 34952@debbugs.gnu.org; Sat, 23 Mar 2019 21:07:36 -0400 Received: by mail-ed1-f44.google.com with SMTP id d26so4631554ede.10 for <34952@debbugs.gnu.org>; Sat, 23 Mar 2019 18:07:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=iGLegwU+PU0gbLw8bqWYShucadr7CL8bXlzQYWcRITY=; b=A0UYrtuLQ11cYCqOpTt75GHtL82YA9IclN59BdyC16RME/ANPYbcA/JtUmXgaTOwBu WxPZth/hECWpBHb+Ga1ib1NA6dhWjaW0HjrDUmrIo+d5EXrakX3aNI9ErzXqtCtMp0Nl YTo6tVzPkk0eXwWJ7CAO1hfGmdRqOYrOM40UvacUxIAALOYJCp4EnN21c8ALYdN5uFxC KsihJbV8HqZD5SjYUiGUZC8tnafh4bMUdbaUneZrWgq3QcsaDGfUxLEuSD5/qkaf3g+4 PqeCNrI8crDLk1PSsAiE3kPjCVJhWgcsyXZGe5rT21YtHpvt8rWInhs/2soXohJmLgtV 7PxQ== 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:content-transfer-encoding; bh=iGLegwU+PU0gbLw8bqWYShucadr7CL8bXlzQYWcRITY=; b=csLRi7pZzD86cOGvEKiE4ODUnRlYzUFxQBIi4+xOdwKVYZslBqkbudgFkKZuABkmgm rxMHzCd+1FlD1pMRPs77hZRb/PVwPopoHrGegnnMG6ulCLExU0FBVbUxoqYK1L0+RxzT LUF2dnJMLh4elHrhfQhZgt5H6gSx2DSbottdS5buJNmkX3d4n8z7GmujhayqsE7mQH86 MYGSssVm79JzQ/p6alhEBLqFLzYixWZFN5IwdPiM8JMLOlCkEP0n5bNb4urUpnFZoZk0 qVAUP1Di6+IQLjPRSuqwBZKKW5vsENXYuM4NVEa5gfr72c97qORlFW74QmcE1NCHl9JT BfXQ== X-Gm-Message-State: APjAAAVIARW/TqotbCMexY37nJApwsRm2MZbHTp9zO4oZlArbuFqK8hW EWMNcUCbNTsZHzsM/uMrOjFiwDkwPcw= X-Google-Smtp-Source: APXvYqzSccG4dOWliW4Z2qgnyNSZd8R+2EauPWpkh5JnfqJoUKQD0zfBTqDK9E2z1vKZcbd5VPrJnw== X-Received: by 2002:a17:906:c9d0:: with SMTP id hk16mr9656141ejb.220.1553389649836; Sat, 23 Mar 2019 18:07:29 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:20c2:134e:4f3a:683a]) by smtp.gmail.com with ESMTPSA id d37sm4168016ede.79.2019.03.23.18.07.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 23 Mar 2019 18:07:29 -0700 (PDT) From: "Basil L. Contovounesios" References: <87zhpm18ll.fsf@jidanni.org> Date: Sun, 24 Mar 2019 01:07:26 +0000 In-Reply-To: <87zhpm18ll.fsf@jidanni.org> ("=?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson"'s message of "Sat, 23 Mar 2019 13:08:06 +0800") Message-ID: <87zhpl13n5.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > indicate-empty-lines is great, but still doesn't show the user the differ= ence between > $ echo abcd > fileA > $ echo -n abcd > fileB > $ emacs file* > Therefore some new variable is needed. > No I'm not talking about writing files, I'm just talking about how they > look when opened. I know and make use of two different customisations to indicate missing newlines at EOF. The first is built-in and (probably) more subtle/elegant/efficient, but relies on the fringe, so only works on graphical frames: (setq-default indicate-buffer-boundaries t) See (info "(emacs) Displaying Boundaries") and (info "(elisp) Fringe Indicators") for details and variations of this feature. The second uses font-lock-mode via hi-lock-mode. You can configure font-lock-mode to highlight missing EOF newlines directly, without relying on hi-lock-mode, but the latter conveniently provides the global minor mode global-hi-lock-mode and blacklist hi-lock-exclude-modes for easy customisation. Here are the incantations: (defun my-hi-lock-no-eof-nl () "Highlight missing trailing EOF newlines." (setf (alist-get "^.+\\'" hi-lock-interactive-patterns nil nil #'equal) '(0 'trailing-whitespace prepend))) (add-hook 'hi-lock-mode-hook #'my-hi-lock-no-eof-nl) (global-hi-lock-mode) You can, of course, change trailing-whitespace to a face of your choosing. See (info "(emacs) Highlight Interactively") for more information on hi-lock-mode. Having said all this, I still think it would be nice to add a whitespace-style setting which visualised missing EOF newlines. --=20 Basil From unknown Sat Jun 21 12:26:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34952: files with/out final newline look the same no matter what Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Mar 2019 01:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 34952@debbugs.gnu.org Received: via spool by 34952-submit@debbugs.gnu.org id=B34952.155339061017100 (code B ref 34952); Sun, 24 Mar 2019 01:24:02 +0000 Received: (at 34952) by debbugs.gnu.org; 24 Mar 2019 01:23:30 +0000 Received: from localhost ([127.0.0.1]:55927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7rrG-0004Rk-Ff for submit@debbugs.gnu.org; Sat, 23 Mar 2019 21:23:30 -0400 Received: from mail-ed1-f48.google.com ([209.85.208.48]:33854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7rrE-0004RR-Fn for 34952@debbugs.gnu.org; Sat, 23 Mar 2019 21:23:28 -0400 Received: by mail-ed1-f48.google.com with SMTP id x14so2013722eds.1 for <34952@debbugs.gnu.org>; Sat, 23 Mar 2019 18:23:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:message-id:references:date:in-reply-to :user-agent:mime-version; bh=ZorOxHnoMp2buAe6g8abiCRjj4Rhxq5O5S4tH7Vwi/k=; b=hfmo+q8VhMllWww5P/XiOsuxus0s32ghTXG+uh/54KFePRc7xZpOS/gRw7z4OwO2sn IfuDM9Mw+jfHfR9fMoY6y3Beiw0E/H3Zvp9vMkwoNQl7fd3/UeL4NSgwLgEcbS4fhDCz KBBpBzcQafeYaBt9IAo/jIQ80jDUinCSGNXXODINCzH3aYVO+8nw6bhl1ody/vnzimX3 lZChoLxZpueqil4lkus4SFjUIS3uut1yOiWq/y9XWZFJxtRUoteI9XfQDOOsme6Y51c6 R52q1AxnOH/PDlpgNYsArqB6MZwHsm3E1x/yqEdZU17jssgmzJm3vkAQ+cojCbLNj+07 kxPg== 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:message-id:references:date :in-reply-to:user-agent:mime-version; bh=ZorOxHnoMp2buAe6g8abiCRjj4Rhxq5O5S4tH7Vwi/k=; b=sfjeKzikifpu787JQNf+5rSA6arg9ubpo6BG/1s4Dkqk3l1CLBXmRk2nvfhWE+67jf 57hQ0YBSxv0zZRioJ4a6mfZEgCQ+AXgY8T3ODY7OxYktdr4HQjzEmmAwtqAw4Da9uJNx agdh6JeG3EazvW/V5oQUKpFhUuE41cOkqwQIqFsIvv4+5/9Iw8QNNFDC5Z6WaR7GyMBe EtG7xmCeuL1Q03t7F9mw/wFe/1S7cCc6lH+ZqDN4f27dB03UCZXYi9tq/hRAzrto6ukd txaoGpvLhev9RKprGYfvYXUgI0yoBqeIzoEgd5pzW3JHWH9WJdzFbD55DgWuBEqZz9Cv 3/CA== X-Gm-Message-State: APjAAAVx4bHj1e+Cg3zIMrVOI7VyXZkGKzTPeLK3OaCDxFHNNo0/hG2g zeM3Q+HsDkeO6v+8033nRP7CwQ== X-Google-Smtp-Source: APXvYqx+K0y+yWcAtGSc2Pe+M7bz9T3GI0uF4ZsrhYSfO3iQPguwK6c1PABhPVHlKGxqZW7L3n4zoA== X-Received: by 2002:a50:b15b:: with SMTP id l27mr11465718edd.124.1553390602708; Sat, 23 Mar 2019 18:23:22 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:20c2:134e:4f3a:683a]) by smtp.gmail.com with ESMTPSA id k3sm3869590edi.65.2019.03.23.18.23.21 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 23 Mar 2019 18:23:21 -0700 (PDT) From: "Basil L. Contovounesios" Message-ID: <87va09135c.fsf@tcd.ie> References: <87zhpm18ll.fsf@jidanni.org> <87zhpl13n5.fsf@tcd.ie> Date: Sun, 24 Mar 2019 01:23:20 +0000 In-Reply-To: <87zhpl13n5.fsf@tcd.ie> (Basil L. Contovounesios's message of "Sun, 24 Mar 2019 01:07:26 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) "Basil L. Contovounesios" writes: > (defun my-hi-lock-no-eof-nl () > "Highlight missing trailing EOF newlines." > (setf (alist-get "^.+\\'" hi-lock-interactive-patterns nil nil #'equal) > '(0 'trailing-whitespace prepend))) Oops, you probably don't want to use setf+alist-get here. Better just: (add-to-list 'hi-lock-interactive-patterns '("^.+\\'" 0 'trailing-whitespace prepend)) -- Basil From unknown Sat Jun 21 12:26:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34952: files with/out final newline look the same no matter what Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Aug 2020 19:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Basil L. Contovounesios" Cc: 34952@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Received: via spool by 34952-submit@debbugs.gnu.org id=B34952.15967404683126 (code B ref 34952); Thu, 06 Aug 2020 19:02:01 +0000 Received: (at 34952) by debbugs.gnu.org; 6 Aug 2020 19:01:08 +0000 Received: from localhost ([127.0.0.1]:54939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k3l8V-0000oM-Nf for submit@debbugs.gnu.org; Thu, 06 Aug 2020 15:01:07 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k3l8Q-0000nh-Mt for 34952@debbugs.gnu.org; Thu, 06 Aug 2020 15:01:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ABJYnJ8Fl/199ZspoCFz6KnZSSUNU9L41FcHoWIHw3U=; b=OEpD0sWkh1/hjgunIDIQYRp0Sl giRk8qfEbmKhpUvjC55AOYeroI5sFwb6D23EIKk/4NugVDypCvlmk/362X7O7dYTs6oYSZIqWXiYW 7D3zoo1w/WL5G36jDLf3Iy4KB0JJvlj68bKHB0aSDL2kiU8nN+cxXFFd+3kJ94YFLOAY=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k3l89-0004qf-TQ; Thu, 06 Aug 2020 21:00:55 +0200 From: Lars Ingebrigtsen References: <87zhpm18ll.fsf@jidanni.org> <87zhpl13n5.fsf@tcd.ie> Date: Thu, 06 Aug 2020 21:00:44 +0200 In-Reply-To: <87zhpl13n5.fsf@tcd.ie> (Basil L. Contovounesios's message of "Sun, 24 Mar 2019 01:07:26 +0000") Message-ID: <87v9hv8uqr.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Basil L. Contovounesios" writes: > Having said all this, I still think it would be nice to add a > whitespace-style setting which visualised missing EOF newlines. Yeah, that seems like an obvious thing to add, I think? I've had a quick peek at whitespace.el, and it doesn't look that difficult to add. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) "Basil L. Contovounesios" writes: > Having said all this, I still think it would be nice to add a > whitespace-style setting which visualised missing EOF newlines. Yeah, that seems like an obvious thing to add, I think? I've had a quick peek at whitespace.el, and it doesn't look that difficult to add. So I think I'll take a whack at that. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Jun 21 12:26:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34952: files with/out final newline look the same no matter what Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Aug 2020 07:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Basil L. Contovounesios" Cc: 34952@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Received: via spool by 34952-submit@debbugs.gnu.org id=B34952.159678537725251 (code B ref 34952); Fri, 07 Aug 2020 07:30:01 +0000 Received: (at 34952) by debbugs.gnu.org; 7 Aug 2020 07:29:37 +0000 Received: from localhost ([127.0.0.1]:55613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k3wor-0006ZD-74 for submit@debbugs.gnu.org; Fri, 07 Aug 2020 03:29:37 -0400 Received: from quimby.gnus.org ([95.216.78.240]:35644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k3wom-0006Yv-73 for 34952@debbugs.gnu.org; Fri, 07 Aug 2020 03:29:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=SZBD9JlKJ6r7UfOlhIv3n4N2Kdlm2LTx1PHdnUiAoXg=; b=gc3pbAxXOGETczBwMzV/TFW7Gv VFFTMi5MsRCeL0+6cF3Bk6ME0rkmM2StMzjK1qLspNLoFhwDrbR88njQ5hNXHpp2zEbSaD6NDQBrm WTuhuLQlKGE3xe//JyPqPLJOCT0nPw1HOsd9InIif38dnZyesgPwtiK0YuPMzm+Y3QLY=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k3woc-00049c-H7; Fri, 07 Aug 2020 09:29:25 +0200 From: Lars Ingebrigtsen References: <87zhpm18ll.fsf@jidanni.org> <87zhpl13n5.fsf@tcd.ie> <87v9hv8uqr.fsf@gnus.org> Date: Fri, 07 Aug 2020 09:29:20 +0200 In-Reply-To: <87v9hv8uqr.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 06 Aug 2020 21:00:44 +0200") Message-ID: <87mu367w33.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > Yeah, that seems like an obvious thing to add, I think? I've had a > quick peek at whitespace.el, and it doesn't look that difficult to add. I'm not familiar with the code in whitespace.el, but it seemed totally trivial to add (since Emacs has a regexp for end-of-buffer), so I've now added it. Give a shout if it doesn't work properly... Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Lars Ingebrigtsen writes: > Yeah, that seems like an obvious thing to add, I think? I've had a > quick peek at whitespace.el, and it doesn't look that difficult to add. I'm not familiar with the code in whitespace.el, but it seemed totally trivial to add (since Emacs has a regexp for end-of-buffer), so I've now added it. Give a shout if it doesn't work properly... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 07 03:29:39 2020 Received: (at control) by debbugs.gnu.org; 7 Aug 2020 07:29:39 +0000 Received: from localhost ([127.0.0.1]:55616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k3wot-0006ZS-HD for submit@debbugs.gnu.org; Fri, 07 Aug 2020 03:29:39 -0400 Received: from quimby.gnus.org ([95.216.78.240]:35658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k3wos-0006Z2-Ny for control@debbugs.gnu.org; Fri, 07 Aug 2020 03:29:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=L0RNkagJpGxUpenRl/JhGfT+/6r97VXk71ipNPZuc9A=; b=gl+jPYmi3Ogi14yPotGcaRdheX FSlzbmZ3JGNWygKCIHy2qSy32CGWsBrUVeOpY26XsWXMiOZ2JExfdcGLnmOgbu8IdzF3882d4IRqQ s55tpbYh9I6XdaHzcI1yLCmUlqOXTNDs8yOAx27uPlkwxuEA4G7UoPHcG1R7MxdS1HrY=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k3wol-00049o-15 for control@debbugs.gnu.org; Fri, 07 Aug 2020 09:29:33 +0200 Date: Fri, 07 Aug 2020 09:29:29 +0200 Message-Id: <87lfiq7w2u.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #34952 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 34952 fixed close 34952 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) tags 34952 fixed close 34952 28.1 quit From unknown Sat Jun 21 12:26:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34952: files with/out final newline look the same no matter what Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Aug 2020 11:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: contovob@tcd.ie, 34952@debbugs.gnu.org, jidanni@jidanni.org Received: via spool by 34952-submit@debbugs.gnu.org id=B34952.15967984559676 (code B ref 34952); Fri, 07 Aug 2020 11:08:01 +0000 Received: (at 34952) by debbugs.gnu.org; 7 Aug 2020 11:07:35 +0000 Received: from localhost ([127.0.0.1]:55903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k40Dm-0002W0-TM for submit@debbugs.gnu.org; Fri, 07 Aug 2020 07:07:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k40Dk-0002Vf-1m for 34952@debbugs.gnu.org; Fri, 07 Aug 2020 07:07:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47662) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k40Dd-0005ub-9R; Fri, 07 Aug 2020 07:07:25 -0400 Received: from [176.228.60.248] (port=1819 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k40Da-000828-IF; Fri, 07 Aug 2020 07:07:23 -0400 Date: Fri, 07 Aug 2020 14:07:17 +0300 Message-Id: <834kpe90ka.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87mu367w33.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 07 Aug 2020 09:29:20 +0200) References: <87zhpm18ll.fsf@jidanni.org> <87zhpl13n5.fsf@tcd.ie> <87v9hv8uqr.fsf@gnus.org> <87mu367w33.fsf@gnus.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Lars Ingebrigtsen > Date: Fri, 07 Aug 2020 09:29:20 +0200 > Cc: 34952@debbugs.gnu.org, > 積丹尼 Dan Jacobson > > I'm not familiar with the code in whitespace.el, but it seemed totally > trivial to add (since Emacs has a regexp for end-of-buffer), so I've now > added it. Give a shout if it doesn't work properly... This addition causes the last character highlighted in annoying red color when typing at the end of the buffer. Can we do better by NOT highlighting character at EOB when point is at EOB, please? That would be in line with whitespace-mode behavior regarding trailing whitespace that precedes point. Thanks. From unknown Sat Jun 21 12:26:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34952: files with/out final newline look the same no matter what Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Aug 2020 11:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Eli Zaretskii Cc: contovob@tcd.ie, 34952@debbugs.gnu.org, jidanni@jidanni.org Received: via spool by 34952-submit@debbugs.gnu.org id=B34952.159679926511060 (code B ref 34952); Fri, 07 Aug 2020 11:22:02 +0000 Received: (at 34952) by debbugs.gnu.org; 7 Aug 2020 11:21:05 +0000 Received: from localhost ([127.0.0.1]:55929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k40Qr-0002sK-A3 for submit@debbugs.gnu.org; Fri, 07 Aug 2020 07:21:05 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k40Qq-0002rS-FC for 34952@debbugs.gnu.org; Fri, 07 Aug 2020 07:21:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=yxKNqt/jXde/VHMjLzhQxH0fjUFYarHdOL//LQ/NZnE=; b=mcrb6aZ+lNrQ3Jf1kHnQiUqIQ3 mVC+nudLvd4oFi9u3rNde4yRur34Y3TCrSyfrqJSUKQNC1s5azf/b9AeyYgyjoeFVdE7q3dVWBK6n V7nAL9R/EecbwKAqT9v/NrFKORM2H7gHMoNJ9uPTugRw6UnPYokXOieBUVgzep7ts9ZM=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k40Qg-0006OI-Pk; Fri, 07 Aug 2020 13:20:58 +0200 From: Lars Ingebrigtsen References: <87zhpm18ll.fsf@jidanni.org> <87zhpl13n5.fsf@tcd.ie> <87v9hv8uqr.fsf@gnus.org> <87mu367w33.fsf@gnus.org> <834kpe90ka.fsf@gnu.org> Date: Fri, 07 Aug 2020 13:20:53 +0200 In-Reply-To: <834kpe90ka.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Aug 2020 14:07:17 +0300") Message-ID: <87imdu8zxm.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > > This addition causes the last character highlighted in annoying red > color when typing at the end of the buffer. Can we do better by NOT > highlighting character at EOB when point is at E [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Eli Zaretskii writes: > > This addition causes the last character highlighted in annoying red > color when typing at the end of the buffer. Can we do better by NOT > highlighting character at EOB when point is at EOB, please? That > would be in line with whitespace-mode behavior regarding trailing > whitespace that precedes point. > Oh, yeah, that makes sense. I'll fix that. And the colour should probably be a bit more subtle than it is. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Jun 21 12:26:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34952: files with/out final newline look the same no matter what Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Aug 2020 12:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Eli Zaretskii Cc: contovob@tcd.ie, 34952@debbugs.gnu.org, jidanni@jidanni.org Received: via spool by 34952-submit@debbugs.gnu.org id=B34952.159680176331997 (code B ref 34952); Fri, 07 Aug 2020 12:03:01 +0000 Received: (at 34952) by debbugs.gnu.org; 7 Aug 2020 12:02:43 +0000 Received: from localhost ([127.0.0.1]:56038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4159-0008K0-FM for submit@debbugs.gnu.org; Fri, 07 Aug 2020 08:02:43 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4157-0008Jm-Jg for 34952@debbugs.gnu.org; Fri, 07 Aug 2020 08:02:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=aiS6k02407EqUSqovCqY5cszhlie4AXcgn0NdYBTfbU=; b=df7mg6FVLUrkxT6Bf+lpiVQBxs chtB2X9pWpfzkTB6ASSbVriIyJoNCGykkxAwcblzmmhJzVIw6af++RAxnBZ4CH5YjlFsWD/Ftoiol 82pg/4rGw9Sy1CKfsVD7KOD/GlD18NNegdKsLi3+HujOyJdMewBDUT14rro6yP7nz39s=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k414y-0006k6-Lm; Fri, 07 Aug 2020 14:02:35 +0200 From: Lars Ingebrigtsen References: <87zhpm18ll.fsf@jidanni.org> <87zhpl13n5.fsf@tcd.ie> <87v9hv8uqr.fsf@gnus.org> <87mu367w33.fsf@gnus.org> <834kpe90ka.fsf@gnu.org> <87imdu8zxm.fsf@gnus.org> Date: Fri, 07 Aug 2020 14:02:31 +0200 In-Reply-To: <87imdu8zxm.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 07 Aug 2020 13:20:53 +0200") Message-ID: <87wo2a7jfs.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > Oh, yeah, that makes sense. I'll fix that. Actually, I don't know how. How do you ask, when you're in the font-lock machinery, what the original point was? Like here: Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Lars Ingebrigtsen writes: > Oh, yeah, that makes sense. I'll fix that. Actually, I don't know how. How do you ask, when you're in the font-lock machinery, what the original point was? Like here: ,@(when (memq 'missing-newline-at-eof whitespace-active-style) ;; Show missing newline. `(("[^\n]\\'" 0 (if .... something) t))))) By the way, have I whined about how difficult debugging font-lock stuff is? I can't put a `debug' in there, for instance, to examine the calling sequence, which would probably tell me what I need to know. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Jun 21 12:26:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34952: files with/out final newline look the same no matter what Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Aug 2020 12:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen , Stefan Monnier Cc: contovob@tcd.ie, 34952@debbugs.gnu.org, jidanni@jidanni.org Received: via spool by 34952-submit@debbugs.gnu.org id=B34952.1596802316439 (code B ref 34952); Fri, 07 Aug 2020 12:12:01 +0000 Received: (at 34952) by debbugs.gnu.org; 7 Aug 2020 12:11:56 +0000 Received: from localhost ([127.0.0.1]:56070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k41E4-000071-9l for submit@debbugs.gnu.org; Fri, 07 Aug 2020 08:11:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k41E2-00006m-Gc for 34952@debbugs.gnu.org; Fri, 07 Aug 2020 08:11:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52415) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k41Dw-0005yl-BA; Fri, 07 Aug 2020 08:11:48 -0400 Received: from [176.228.60.248] (port=1780 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k41Dv-0003ak-8I; Fri, 07 Aug 2020 08:11:47 -0400 Date: Fri, 07 Aug 2020 15:11:43 +0300 Message-Id: <83tuxe7j0g.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87wo2a7jfs.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 07 Aug 2020 14:02:31 +0200) References: <87zhpm18ll.fsf@jidanni.org> <87zhpl13n5.fsf@tcd.ie> <87v9hv8uqr.fsf@gnus.org> <87mu367w33.fsf@gnus.org> <834kpe90ka.fsf@gnu.org> <87imdu8zxm.fsf@gnus.org> <87wo2a7jfs.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Lars Ingebrigtsen > Cc: contovob@tcd.ie, 34952@debbugs.gnu.org, jidanni@jidanni.org > Date: Fri, 07 Aug 2020 14:02:31 +0200 > > Lars Ingebrigtsen writes: > > > Oh, yeah, that makes sense. I'll fix that. > > Actually, I don't know how. How do you ask, when you're in the > font-lock machinery, what the original point was? Like here: > > ,@(when (memq 'missing-newline-at-eof whitespace-active-style) > ;; Show missing newline. > `(("[^\n]\\'" 0 (if .... something) t))))) What, calling 'point' doesn't work? Then maybe Stefan could help us out. > By the way, have I whined about how difficult debugging font-lock stuff > is? I can't put a `debug' in there, for instance, to examine the > calling sequence, which would probably tell me what I need to know. I think Stefan posted some advice at some point? From unknown Sat Jun 21 12:26:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34952: files with/out final newline look the same no matter what Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Aug 2020 12:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Eli Zaretskii Cc: contovob@tcd.ie, 34952@debbugs.gnu.org, Stefan Monnier , jidanni@jidanni.org Received: via spool by 34952-submit@debbugs.gnu.org id=B34952.15968026729494 (code B ref 34952); Fri, 07 Aug 2020 12:18:02 +0000 Received: (at 34952) by debbugs.gnu.org; 7 Aug 2020 12:17:52 +0000 Received: from localhost ([127.0.0.1]:56080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k41Jo-0002T4-5o for submit@debbugs.gnu.org; Fri, 07 Aug 2020 08:17:52 -0400 Received: from quimby.gnus.org ([95.216.78.240]:39018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k41Jl-0002My-6A for 34952@debbugs.gnu.org; Fri, 07 Aug 2020 08:17:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YEohNKITdQjXkTknb+nf/kE2ABM7AILXa8xbFvQ2GD8=; b=CZ/rmp7vI1ypXw2bSKdHkAGJUb X4ggkB4K15c+VF2j92rI8dfTGCB1tcVLZgMAmM3mMeug+vzXquM6xrENcqef/nS44rJjv0CYuH3MF y2bqhuV2if51wG6vrRbOTVu0kBeI3oB1YWTysVlduhrRGFFu/A/ev1ugDEt8T84BIN44=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k41Jc-0006tu-0k; Fri, 07 Aug 2020 14:17:42 +0200 From: Lars Ingebrigtsen References: <87zhpm18ll.fsf@jidanni.org> <87zhpl13n5.fsf@tcd.ie> <87v9hv8uqr.fsf@gnus.org> <87mu367w33.fsf@gnus.org> <834kpe90ka.fsf@gnu.org> <87imdu8zxm.fsf@gnus.org> <87wo2a7jfs.fsf@gnus.org> <83tuxe7j0g.fsf@gnu.org> Date: Fri, 07 Aug 2020 14:17:38 +0200 In-Reply-To: <83tuxe7j0g.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Aug 2020 15:11:43 +0300") Message-ID: <87imdu7iql.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> Actually, I don't know how. How do you ask, when you're in the >> font-lock machinery, what the original point was? Like here: >> >> , @(when (memq 'missing-newline-at-eof whitespace-active-style) > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Eli Zaretskii writes: >> Actually, I don't know how. How do you ask, when you're in the >> font-lock machinery, what the original point was? Like here: >> >> ,@(when (memq 'missing-newline-at-eof whitespace-active-style) >> ;; Show missing newline. >> `(("[^\n]\\'" 0 (if .... something) t))))) > > What, calling 'point' doesn't work? Then maybe Stefan could help us > out. No, (point) here has already been moved by the font locking machinery... >> By the way, have I whined about how difficult debugging font-lock stuff >> is? I can't put a `debug' in there, for instance, to examine the >> calling sequence, which would probably tell me what I need to know. > > I think Stefan posted some advice at some point? Not unlikely! I keep forgetting stuff... Perhaps Stefan can remind me. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Jun 21 12:26:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34952: files with/out final newline look the same no matter what Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Aug 2020 14:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Eli Zaretskii Cc: contovob@tcd.ie, 34952@debbugs.gnu.org, Lars Ingebrigtsen , jidanni@jidanni.org Received: via spool by 34952-submit@debbugs.gnu.org id=B34952.159681006225971 (code B ref 34952); Fri, 07 Aug 2020 14:22:02 +0000 Received: (at 34952) by debbugs.gnu.org; 7 Aug 2020 14:21:02 +0000 Received: from localhost ([127.0.0.1]:57375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k43F0-0006kf-0Z for submit@debbugs.gnu.org; Fri, 07 Aug 2020 10:21:02 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:20078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k43Ew-0006jy-Fr for 34952@debbugs.gnu.org; Fri, 07 Aug 2020 10:21:00 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 2177980B07; Fri, 7 Aug 2020 10:20:53 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 861C2806B9; Fri, 7 Aug 2020 10:20:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1596810051; bh=aq/OjuXt7zfS5zGn1q3RoNKyO7KLRpYZ8WkIpojTIq8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=cYMhUT8VbRwFoHx0EOePW+bgwHWOLubSknSz3LqMfznlW+8joiMdLDWdqlvbKLMsN AajTGG82e4kw8DZ+41MLxe1zgOzDjJKX+0NzGiJzykZaD1BXSxycfI8zuOEBtvoUb9 jpGvrATkHqC0gjDIG2Ig6YyzHLSmwQfeiwgxQybRv17dmPav6yRsYKPyAubKp6Bqfj 1jqzU4DyryEBL9IQSCTpEXN1ylCGIUw3/f6ynD1bGLtwFt5J/tkAr6phQ8ffcf5Xr/ M3WBfq7lbJsHLHafM/3kpVCcG269fl8g7KoKlYbNbHvv8QxiL64d0sd0dMIhbKSc1O z+8GeDsJQHj/Q== Received: from milanesa (unknown [45.72.246.108]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4648B120846; Fri, 7 Aug 2020 10:20:51 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87zhpm18ll.fsf@jidanni.org> <87zhpl13n5.fsf@tcd.ie> <87v9hv8uqr.fsf@gnus.org> <87mu367w33.fsf@gnus.org> <834kpe90ka.fsf@gnu.org> <87imdu8zxm.fsf@gnus.org> <87wo2a7jfs.fsf@gnus.org> <83tuxe7j0g.fsf@gnu.org> Date: Fri, 07 Aug 2020 10:20:50 -0400 In-Reply-To: <83tuxe7j0g.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Aug 2020 15:11:43 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.031 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) >> > Oh, yeah, that makes sense. I'll fix that. >> Actually, I don't know how. How do you ask, when you're in the >> font-lock machinery, what the original point was? font-lock is "per buffer" whereas point is "per window", so I'm not sure what "*the* original point" should mean. >> Like here: >> ,@(when (memq 'missing-newline-at-eof whitespace-active-style) >> ;; Show missing newline. >> `(("[^\n]\\'" 0 (if .... something) t))))) > What, calling 'point' doesn't work? Then maybe Stefan could help us > out. >> By the way, have I whined about how difficult debugging font-lock stuff >> is? I can't put a `debug' in there, for instance, to examine the >> calling sequence, which would probably tell me what I need to know. > I think Stefan posted some advice at some point? You can try `jit-lock-debug-mode` (which delays the jit-lock from "within redisplay" to "the next idle time"). Otherwise, you can set `font-lock-support-mode` to nil, then turn font-lock-mode off and back on (after which font-lock is triggered via `after-change-functions`). Stefan From unknown Sat Jun 21 12:26:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34952: files with/out final newline look the same no matter what Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Aug 2020 21:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: 34952@debbugs.gnu.org, Eli Zaretskii , jidanni@jidanni.org Received: via spool by 34952-submit@debbugs.gnu.org id=B34952.15968373072155 (code B ref 34952); Fri, 07 Aug 2020 21:56:02 +0000 Received: (at 34952) by debbugs.gnu.org; 7 Aug 2020 21:55:07 +0000 Received: from localhost ([127.0.0.1]:57697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4AKR-0000Yh-BN for submit@debbugs.gnu.org; Fri, 07 Aug 2020 17:55:07 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:43249) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4AKO-0000Y5-K9 for 34952@debbugs.gnu.org; Fri, 07 Aug 2020 17:55:05 -0400 Received: by mail-wr1-f47.google.com with SMTP id a15so2903833wrh.10 for <34952@debbugs.gnu.org>; Fri, 07 Aug 2020 14:55:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=8Z/KLryGPwfqqv0v+CNN/zq9RTR2cGilCBzXiR1VlaE=; b=lnWQxD61reR3T1NV1xgffaL8IVVugBbxpiNlX4QrPUazSVVjsWArzsaP1Yteox2ga1 /EU2gomRK1Z5Ro1wu3wjaLfWnPz04x1wu0S+81tYUzfHridiMMeMoXCPyBK8b+KCA0W1 4E/iz+gjGqvcGBjRg8HmZJrTcgv9rqr3ifGfESB6qVPUPsuN+TnQ/eQyFqS/c8IzP80Z Hdt2srqz0Fij1tDbUKPAESFUiGiiMx2FjhLMDuByFVPSV1XyJACapRE5OotjZh29UuuC JMmK3gSYlR0Ga6q8bET+FkxZlsXkQ6CXJLpAnBKxYv7x8zhbbKe57NvFDRWQTELVGq9W Mcuw== 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=8Z/KLryGPwfqqv0v+CNN/zq9RTR2cGilCBzXiR1VlaE=; b=GJK1Ubu3xAiVvv3ZIwOVZ2gEW2+6RAzM6llST7vcbSWMRJH7NRLwYztvWwV0oE2EHG UgXvUisvoiKz0VZNEE/swes2jBLCV401V/nhMGuyraTZI/BC39KXQ8kqdByswvoyC8Zx QLQO9q3ceg//2oj+21d5ChTjxZMOEmM3dhTyHqLa825EjdMS0T5AifruqDckGMRMYbcJ iC4OIGXqEvcbDZTwR0PpBnZ3OYLjSRwlr98QhYQc8C7ViQjBRUwr6ius4rF0VwwRRHPB 7fAgYwbGJk5X5PQXzOpeuqKXtJSl/bxTkfdD6QFFpVoO4l+vMqaXo7/xjRJO5AkR23VM T0MQ== X-Gm-Message-State: AOAM53308ULRySM70erOSH4m7kWOyp6APlussWfNyUZfpqsskiNlGR07 fDfN+qM1LSFbfPaC8bzVbrDGzA== X-Google-Smtp-Source: ABdhPJzweA+/ZlcWGqlPowaXKh03t4qgRAqzKtd3e/65VZb4RES1idNei4cZ75kTavsQOuP5/SnTpg== X-Received: by 2002:a5d:4b11:: with SMTP id v17mr13632298wrq.224.1596837298591; Fri, 07 Aug 2020 14:54:58 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:92bd:1bfd:38fc:fae2]) by smtp.gmail.com with ESMTPSA id k15sm12066307wrp.43.2020.08.07.14.54.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 14:54:57 -0700 (PDT) From: "Basil L. Contovounesios" References: <87zhpm18ll.fsf@jidanni.org> <87zhpl13n5.fsf@tcd.ie> <87v9hv8uqr.fsf@gnus.org> <87mu367w33.fsf@gnus.org> <834kpe90ka.fsf@gnu.org> <87imdu8zxm.fsf@gnus.org> <87wo2a7jfs.fsf@gnus.org> Date: Fri, 07 Aug 2020 22:54:56 +0100 In-Reply-To: <87wo2a7jfs.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 07 Aug 2020 14:02:31 +0200") Message-ID: <87imduf7f3.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Lars Ingebrigtsen writes: > Lars Ingebrigtsen writes: > >> Oh, yeah, that makes sense. I'll fix that. > > Actually, I don't know how. How do you ask, when you're in the > font-lock machinery, what the original point was? Like here: > > ,@(when (memq 'missing-newline-at-eof whitespace-active-style) > ;; Show missing newline. > `(("[^\n]\\'" 0 (if .... something) t))))) Isn't it possible to just copy what whitespace-trailing-regexp is doing? I.e. use a function instead of a regexp? (I don't think the regexp construct \= would help much here.) > By the way, have I whined about how difficult debugging font-lock stuff > is? I can't put a `debug' in there, for instance, to examine the > calling sequence, which would probably tell me what I need to know. Would font-lock-studio help? (I haven't tried it.) https://github.com/Lindydancer/font-lock-studio Thanks, -- Basil From unknown Sat Jun 21 12:26:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34952: files with/out final newline look the same no matter what Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Aug 2020 09:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Stefan Monnier Cc: contovob@tcd.ie, 34952@debbugs.gnu.org, Eli Zaretskii , jidanni@jidanni.org Received: via spool by 34952-submit@debbugs.gnu.org id=B34952.159687970313228 (code B ref 34952); Sat, 08 Aug 2020 09:42:01 +0000 Received: (at 34952) by debbugs.gnu.org; 8 Aug 2020 09:41:43 +0000 Received: from localhost ([127.0.0.1]:58109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4LMF-0003RH-Ib for submit@debbugs.gnu.org; Sat, 08 Aug 2020 05:41:43 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4LME-0003R4-37 for 34952@debbugs.gnu.org; Sat, 08 Aug 2020 05:41:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tJWv2e9dynxr733CLLy321tnK699qgTEx/5UuraccYg=; b=KNjTQomfvWoMHUmjmXCzp3UkdX lJy7ek/gcwnoy4ZuJT2r9UUGvK/uLW1nk7Nu+nK6cID7KQyZPg4C3vAUfmSOV7Su4OvRARViaosdW q7KN/z3sfHg5xeIgOpOB8qCDNV3WeAfubC4xcOZ+/ws7FmH+eQ7UkXcwepF+b6/sxkZg=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k4LM4-0002aD-FW; Sat, 08 Aug 2020 11:41:34 +0200 From: Lars Ingebrigtsen References: <87zhpm18ll.fsf@jidanni.org> <87zhpl13n5.fsf@tcd.ie> <87v9hv8uqr.fsf@gnus.org> <87mu367w33.fsf@gnus.org> <834kpe90ka.fsf@gnu.org> <87imdu8zxm.fsf@gnus.org> <87wo2a7jfs.fsf@gnus.org> <83tuxe7j0g.fsf@gnu.org> Date: Sat, 08 Aug 2020 11:41:30 +0200 In-Reply-To: (Stefan Monnier's message of "Fri, 07 Aug 2020 10:20:50 -0400") Message-ID: <87mu355vat.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: > font-lock is "per buffer" whereas point is "per window", so I'm not sure > what "*the* original point" should mean. I guess it's not a well-defined question... but some action triggered the fontification, and I guess what's interesting question here is "what was point in the window that triggered the fontification" [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Stefan Monnier writes: > font-lock is "per buffer" whereas point is "per window", so I'm not sure > what "*the* original point" should mean. I guess it's not a well-defined question... but some action triggered the fontification, and I guess what's interesting question here is "what was point in the window that triggered the fontification"? > You can try `jit-lock-debug-mode` (which delays the jit-lock from > "within redisplay" to "the next idle time"). Otherwise, you can set > `font-lock-support-mode` to nil, then turn font-lock-mode off and back > on (after which font-lock is triggered via `after-change-functions`). I see; thanks. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Jun 21 12:26:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34952: files with/out final newline look the same no matter what Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Aug 2020 09:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: "Basil L. Contovounesios" Cc: 34952@debbugs.gnu.org, Eli Zaretskii , jidanni@jidanni.org Received: via spool by 34952-submit@debbugs.gnu.org id=B34952.159688004220697 (code B ref 34952); Sat, 08 Aug 2020 09:48:02 +0000 Received: (at 34952) by debbugs.gnu.org; 8 Aug 2020 09:47:22 +0000 Received: from localhost ([127.0.0.1]:58113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4LRi-0005NU-6p for submit@debbugs.gnu.org; Sat, 08 Aug 2020 05:47:22 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4LRg-0005I9-1f for 34952@debbugs.gnu.org; Sat, 08 Aug 2020 05:47:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=yOvbdjqyq2GWMyTpdSIQRIVp7bnSzWWyJotwOVFjUjM=; b=rNB71tKIcP0xEbpm+aCAZX+69M OuK+omlUpNyHJBsg4fGp3BWjX3vg/a8KhPd+VTH+s8AJbtiR5C2h7wgye3WMkaPgMujJcXqfRifcF wwp49yRlMIaJIROzPGMTCrhB2qAnhy8nHA9C8LbAnm+uLjjLU6rzyKqYpKS3RVAiN15o=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k4LRT-0002f9-7T; Sat, 08 Aug 2020 11:47:13 +0200 From: Lars Ingebrigtsen References: <87zhpm18ll.fsf@jidanni.org> <87zhpl13n5.fsf@tcd.ie> <87v9hv8uqr.fsf@gnus.org> <87mu367w33.fsf@gnus.org> <834kpe90ka.fsf@gnu.org> <87imdu8zxm.fsf@gnus.org> <87wo2a7jfs.fsf@gnus.org> <87imduf7f3.fsf@tcd.ie> Date: Sat, 08 Aug 2020 11:47:05 +0200 In-Reply-To: <87imduf7f3.fsf@tcd.ie> (Basil L. Contovounesios's message of "Fri, 07 Aug 2020 22:54:56 +0100") Message-ID: <87imdt5v1i.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Basil L. Contovounesios" writes: > Isn't it possible to just copy what whitespace-trailing-regexp is doing? > I.e. use a function instead of a regexp? (I don't think the regexp > construct \= would help much here.) Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) "Basil L. Contovounesios" writes: > Isn't it possible to just copy what whitespace-trailing-regexp is doing? > I.e. use a function instead of a regexp? (I don't think the regexp > construct \= would help much here.) \= matches the empty string, but only at point. Heh, I didn't even know about that one... Ah, yeah: (defvar whitespace-point (point) "Used to save locally current point value. Used by function `whitespace-trailing-regexp' (which see).") So that's basically the same problem I'm having here, and it's solved by machinery that keeps that variable updated in whitespace buffers, probably because font-lock doesn't provide that information? >> By the way, have I whined about how difficult debugging font-lock stuff >> is? I can't put a `debug' in there, for instance, to examine the >> calling sequence, which would probably tell me what I need to know. > > Would font-lock-studio help? (I haven't tried it.) > https://github.com/Lindydancer/font-lock-studio Interesting... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Jun 21 12:26:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34952: files with/out final newline look the same no matter what Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Aug 2020 13:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: contovob@tcd.ie, 34952@debbugs.gnu.org, Eli Zaretskii , jidanni@jidanni.org Received: via spool by 34952-submit@debbugs.gnu.org id=B34952.159689249629179 (code B ref 34952); Sat, 08 Aug 2020 13:15:02 +0000 Received: (at 34952) by debbugs.gnu.org; 8 Aug 2020 13:14:56 +0000 Received: from localhost ([127.0.0.1]:58510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4OgZ-0007aZ-TS for submit@debbugs.gnu.org; Sat, 08 Aug 2020 09:14:56 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:65193) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4OgW-0007a4-03 for 34952@debbugs.gnu.org; Sat, 08 Aug 2020 09:14:54 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id B2D1D80B63; Sat, 8 Aug 2020 09:14:46 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 16B03806D4; Sat, 8 Aug 2020 09:14:45 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1596892485; bh=hfpAQumupT7PlaU461isu1EAl/hkLbgXoxIZ17J3q8E=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=hNPSkils0y2+edPNtpJJdE58RsOKlD+IB14Ci6kDVxeGu0CkVI+pqNVyS05rYNvQb yzBsYrlMlRENF69Sn0EVSZCWbWFvyX1mXfgXvB7vdrBjEIkJ8Vc6eIy9/CcZt1pJBN qK/iEOwyTuNAtNL+j3kHadPr9+1n4fjFP6jjjYhztRd03xJflQc84eYa39vU8HuKuF fHggA+QJsyzEHMwqnayhS+fkwYvIlYZFppXWK3OiyH5jVag5V8aqo8fWhvyNgaiN/b Qiy57oZUO/SGdnSb32wRIsKNaIV8PtbCpZWxgTeC8Oe3wwlOTXJ3hbFMfIe/+KXKdv gZIJPa3R8sclQ== Received: from milanesa (unknown [45.72.246.108]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C57AF1203B2; Sat, 8 Aug 2020 09:14:44 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87zhpm18ll.fsf@jidanni.org> <87zhpl13n5.fsf@tcd.ie> <87v9hv8uqr.fsf@gnus.org> <87mu367w33.fsf@gnus.org> <834kpe90ka.fsf@gnu.org> <87imdu8zxm.fsf@gnus.org> <87wo2a7jfs.fsf@gnus.org> <83tuxe7j0g.fsf@gnu.org> <87mu355vat.fsf@gnus.org> Date: Sat, 08 Aug 2020 09:14:35 -0400 In-Reply-To: <87mu355vat.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 08 Aug 2020 11:41:30 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.033 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) >> font-lock is "per buffer" whereas point is "per window", so I'm not sure >> what "*the* original point" should mean. > I guess it's not a well-defined question... but some action triggered > the fontification, and I guess what's interesting question here is "what > was point in the window that triggered the fontification"? In GNU ELPA's `nhexl-mode` I had a similar need, which I solved by using a `nhexl--point` variable (updated via `post-command-hook`) to keep track of `point`. It does mean that the package can't properly handle the case where the buffer is simultaneously displayed in several windows :-( Stefan