Re: Major mode of orgweb/publish.sh?

2023-04-20 Thread General discussions about Org-mode.
Bastien Guerry writes: > Ihor Radchenko writes: > >>> Converted the `load' into `require' because it allows someone working on a >>> local >>> repo to `eval-buffer' successfully, given that the individual installs these >>> dependencies from GNU/NonGNU Elpa. Previously, due to the

Re: Major mode of orgweb/publish.sh?

2023-04-19 Thread Max Nikulin
On 14/04/2023 16:20, Ruijie Yu wrote: Ihor Radchenko writes: Ruijie Yu writes: Major mode was erronously set to shell-script-mode because of the empty line. Empty line was added by mistake, see "23.3 Choosing File Modes" in the Emacs manual: (info "(emacs) Choosing Modes")

Re: Major mode of orgweb/publish.sh?

2023-04-19 Thread Bastien Guerry
Ihor Radchenko writes: >> Converted the `load' into `require' because it allows someone working on a >> local >> repo to `eval-buffer' successfully, given that the individual installs these >> dependencies from GNU/NonGNU Elpa. Previously, due to the hard-coded path, >> `eval-buffer' would not

Re: Major mode of orgweb/publish.sh?

2023-04-14 Thread General discussions about Org-mode.
Ihor Radchenko writes: > Ruijie Yu via "General discussions about Org-mode." > writes: > >> Major mode was erronously set to shell-script-mode because of the empty line. > > There is no error there. The line in question is inline stdin redirect > in shell. "#..." is what is fed to exec emacs.

Re: Major mode of orgweb/publish.sh?

2023-04-14 Thread Ihor Radchenko
Ruijie Yu 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

Re: Major mode of orgweb/publish.sh?

2023-04-14 Thread General discussions about Org-mode.
Ihor Radchenko writes: > Ruijie Yu via "General discussions about Org-mode." > writes: > >> What is the expected major mode for orgweb/publish.sh? When I open it, >> I see it is in `shell-script-mode'. This is what I see in >> orgweb/publish.

Re: Major mode of orgweb/publish.sh?

2023-04-14 Thread Ihor Radchenko
Ruijie Yu via "General discussions about Org-mode." writes: > Major mode was erronously set to shell-script-mode because of the empty line. There is no error there. The line in question is inline stdin redirect in shell. "#..." is what is fed to exec emacs. There is no intention to define mode

Re: Major mode of orgweb/publish.sh?

2023-04-14 Thread Ihor Radchenko
Ruijie Yu via "General discussions about Org-mode." writes: > What is the expected major mode for orgweb/publish.sh? When I open it, > I see it is in `shell-script-mode'. This is what I see in > orgweb/publish.sh: > > --8<---cut here---star

Re: Major mode of orgweb/publish.sh?

2023-04-14 Thread General discussions about Org-mode.
Ruijie Yu writes: >> Hello, >> >> What is the expected major mode for orgweb/publish.sh? When I open it, >> I see it is in `shell-script-mode'. This is what I see in >> orgweb/publish.sh: >> >> --8<---cut here--

Re: Major mode of orgweb/publish.sh?

2023-04-14 Thread General discussions about Org-mode.
Ruijie Yu via "General discussions about Org-mode." writes: > Hello, > > What is the expected major mode for orgweb/publish.sh? When I open it, > I see it is in `shell-script-mode'. This is what I see in > orgweb/publish.sh: > > --8<---cut here-

Major mode of orgweb/publish.sh?

2023-04-14 Thread General discussions about Org-mode.
Hello, What is the expected major mode for orgweb/publish.sh? When I open it, I see it is in `shell-script-mode'. This is what I see in orgweb/publish.sh: --8<---cut here---start->8--- #!/usr/bin/env sh ":" ; exec emacs --qu