From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#34952: files with/out final newline look the same no matter what Date: Fri, 07 Aug 2020 14:17:38 +0200 Message-ID: <87imdu7iql.fsf@gnus.org> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25077"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: contovob@tcd.ie, 34952@debbugs.gnu.org, Stefan Monnier , jidanni@jidanni.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 07 14:18:11 2020 Return-path: Envelope-to: geb-bug-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 1k41K5-0006P1-Gq for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Aug 2020 14:18:09 +0200 Original-Received: from localhost ([::1]:60506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k41K4-0006PI-FZ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Aug 2020 08:18:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k41Jy-0006Oy-I4 for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2020 08:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44534) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k41Jy-0006jA-94 for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2020 08:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k41Jy-0002TR-1y for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2020 08:18:02 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 34952-submit@debbugs.gnu.org id=B34952.15968026729494 (code B ref 34952); Fri, 07 Aug 2020 12:18:02 +0000 Original-Received: (at 34952) by debbugs.gnu.org; 7 Aug 2020 12:17:52 +0000 Original-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 Original-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=; Original-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 In-Reply-To: <83tuxe7j0g.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Aug 2020 15:11:43 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:184275 Archived-At: 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