emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Major mode of orgweb/publish.sh?


From: Ihor Radchenko
Subject: Re: Major mode of orgweb/publish.sh?
Date: Fri, 14 Apr 2023 08:54:01 +0000

Ruijie Yu <ruijie@netyu.xyz> writes:

>> You can do either way, depending on which part of the script you want to 
>> edit.
>
> I tried to actually compare the two versions, and found out that the
> lexical-binding does nothing at all during the script execution,
> regardless of whether there is an empty line or not.  Is this a bug or
> an expected behavior?

I suspect that lexical binding is used there just as a good measure for
future compatibility - current Elisp standards promote using lexical
binding unless the opposite is strictly necessary.

> FTR, when opening the file in a buffer, the property line in a file
> without empty line is properly recognized, whereas in the file with
> empty line it is not recognized.

This is Emacs subtlety. We are using what looks like Emacs property line
close to the beginning of the buffer without actual intention to tell
Emacs anything. I do not see why we should care much though.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

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