emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix hack-local-variables for find-file-literally with dos en


From: Lars Ingebrigtsen
Subject: Re: [PATCH] Fix hack-local-variables for find-file-literally with dos encoding
Date: Mon, 16 Aug 2021 14:53:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> More importantly, what about selective-display, which replaces
> newlines with \r's?  I think this replacement is for that use case.
>
> So perhaps the condition for the replacement should be
> selective-display?

Aha!  The initial revision of files.el had:

+(defun hack-local-variables (&optional force)
[...]
+           ;; Look at next local variable spec.
+           (if selective-display (re-search-forward "[\n\C-m]")
+             (forward-line 1))

So the ^M stuff that remains in here may have nothing to do with CRLF
DOS stuff, but is something that's left over from code meant to deal
with selective display?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]