On 17/04/2023 22:21, Ihor Radchenko wrote:
Matt writes:
I was able to resolve it by simply requiring `sh-script' in `org-src'.
Committed and pushed.
Note that it will break Emacs 26.
org-protocol.el defines polyfill for `flatten-tree'.
Matt writes:
> I was able to resolve it by simply requiring `sh-script' in `org-src'.
> Committed and pushed.
Note that it will break Emacs 26.
Which will fix itself once we merge compat.el support.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at
On Fri, 07 Apr 2023 11:29:59 -0400 Matt wrote ---
>
> On Tue, 04 Apr 2023 08:30:34 -0400 Ihor Radchenko wrote ---
>
> > See the attached tentative patch.
>
> After applying the patch, I get the following error when trying to load
> Emacs:
>
> Warning (comp):
In the code I posted, I had to explicitly (require 'sh-script) to ensure
that the sh-ancestor-alist is loaded before the code. I'm not enough of an
elisp guru to know if there's a way to defer that.
Cheers,
Derek
On Fri, Apr 7, 2023 at 9:30 AM Matt wrote:
>
> On Tue, 04 Apr 2023
On Tue, 04 Apr 2023 08:30:34 -0400 Ihor Radchenko wrote ---
> See the attached tentative patch.
After applying the patch, I get the following error when trying to load Emacs:
Warning (comp): /home/ahab/Projects/org-mode/lisp/org.el: Error: Symbol's value
as variable is void
The patch looks good to me!
Thanks,
Derek
On Tue, Apr 4, 2023 at 6:30 AM Ihor Radchenko wrote:
> Derek Chen-Becker writes:
>
> > I fiddled around a little bit this weekend and confirmed that this
> (sloppy)
> > code makes highlighting work for all shell types that sh-script supports:
> >
> >
Derek Chen-Becker writes:
> I fiddled around a little bit this weekend and confirmed that this (sloppy)
> code makes highlighting work for all shell types that sh-script supports:
>
> ;;A quick hack to try and support more shells syntax highlight in org babel
> (require 'sh-script)
> (require
I fiddled around a little bit this weekend and confirmed that this (sloppy)
code makes highlighting work for all shell types that sh-script supports:
;;A quick hack to try and support more shells syntax highlight in org babel
(require 'sh-script)
(require 'ob-shell)
(let ((shells (seq-filter
On Thu, 30 Mar 2023 04:55:32 -0400 Ihor Radchenko wrote ---
> Matt m...@excalamus.com> writes:
>
> > I think this approach will work fine. I tried examples for each shell
> > type and keywords like if/then/else and function names are highlighted.
>
> Even for posh
Derek Chen-Becker writes:
> When I asked the question I was just thinking of using it as a reference
> for expanding the current org-src-lang-modes values, but now that you've
> asked the question, perhaps we could dynamically amend org-src-lang-modes
> based on the contents of
When I asked the question I was just thinking of using it as a reference
for expanding the current org-src-lang-modes values, but now that you've
asked the question, perhaps we could dynamically amend org-src-lang-modes
based on the contents of sh-ancestor-alist. Does that make sense?
Thanks,
Derek Chen-Becker writes:
> Would it be fair to use the sh-ancestor-alist as a basis for all of the
> supported shell variants?
>
> https://github.com/emacs-mirror/emacs/blob/master/lisp/progmodes/sh-script.el#L177
How can we use it?
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn
Would it be fair to use the sh-ancestor-alist as a basis for all of the
supported shell variants?
https://github.com/emacs-mirror/emacs/blob/master/lisp/progmodes/sh-script.el#L177
Cheers,
Derek
On Thu, Mar 30, 2023 at 2:54 AM Ihor Radchenko wrote:
> Matt writes:
>
> > I think this approach
Matt writes:
> I think this approach will work fine. I tried examples for each shell type
> and keywords like if/then/else and function names are highlighted.
Even for posh (powershell)?
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at
On Wed, 29 Mar 2023 13:04:31 -0400 Derek Chen-Becker wrote ---
> Cool, I would be happy to submit a patch!
Sure, if that's something you'd enjoy. I'm happy to assist, if needed.
> On Wed, Mar 29, 2023 at 3:33 AM Ihor Radchenko yanta...@posteo.net> wrote:
>
> Org provides some
Cool, I would be happy to submit a patch!
Thanks,
Derek
On Wed, Mar 29, 2023 at 3:33 AM Ihor Radchenko wrote:
> Matt writes:
>
> > Does anyone know which function is responsible for re-fontifing source
> blocks?
>
> `org-src-font-lock-fontify-block', which is using major-mode's native
>
Matt writes:
> Does anyone know which function is responsible for re-fontifing source
> blocks?
`org-src-font-lock-fontify-block', which is using major-mode's native
fontification. The major mode is determined by `org-src-get-lang-mode',
which can be customized using `org-src-lang-modes'.
Of the shells given in `org-babel-shell-names' (that is, "sh" "bash" "zsh"
"fish" "csh" "ash" "dash" "ksh" "mksh" "posh"), only "sh" and "bash" have font
locking in source blocks.
For example,
#+begin_src sh
if [ -z $TEST ]; then
echo Fontified
fi
#+end_src
#+begin_src bash
if [
18 matches
Mail list logo