[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug Re: Greater than, less than bug in emacs-lisp source block
From: |
John Kitchin |
Subject: |
Re: Bug Re: Greater than, less than bug in emacs-lisp source block |
Date: |
Tue, 07 Sep 2021 16:23:40 -0400 |
User-agent: |
mu4e 1.6.5; emacs 28.0.50 |
My current solution (which already differs from the last one I posted
here...) is here:
https://github.com/jkitchin/scimax/blob/master/scimax-org-src-blocks.el#L61
It is more selective, and only changes the syntax inside these src
blocks:
"jupyter-python" "python" "emacs-lisp"
and does not change the syntax if the character is in a string.
That way it still works with xml and html in strings, or in their own
blocks.
This might be the third iteration of fixing this issue, so I wouldn't
have the hubris to say it is the final solution yet.
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> I believe this has been mentioned in passing in this thread but I'll
> repeat just in case: Unless you are working with xml or HTML in your org
> documents, and even then, having these two lines in your org
> configuration (e.g. org-mode-hook):
>
> (modify-syntax-entry ?< ".")
> (modify-syntax-entry ?> ".")
>
> solves all the problems with languages that use these in an unbalanced
> manner (comparison, assignment). I've had this configuration for years
> now and it just works (for me).
--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
Pronouns: he/him/his
- re: Bug Re: Greater than, less than bug in emacs-lisp source block, (continued)
- re: Bug Re: Greater than, less than bug in emacs-lisp source block, Charles Millar, 2021/09/03
- Re: Bug Re: Greater than, less than bug in emacs-lisp source block, John Kitchin, 2021/09/03
- Re: Bug Re: Greater than, less than bug in emacs-lisp source block, Tim Cross, 2021/09/03
- Re: Bug Re: Greater than, less than bug in emacs-lisp source block, John Kitchin, 2021/09/03
- Re: Bug Re: Greater than, less than bug in emacs-lisp source block, Tim Cross, 2021/09/04
- Re: Bug Re: Greater than, less than bug in emacs-lisp source block, Arthur Miller, 2021/09/05
- Re: Bug Re: Greater than, less than bug in emacs-lisp source block, Tim Cross, 2021/09/05
- Re: Bug Re: Greater than, less than bug in emacs-lisp source block, Arthur Miller, 2021/09/05
- Re: Bug Re: Greater than, less than bug in emacs-lisp source block, Greg Minshall, 2021/09/06
- Re: Bug Re: Greater than, less than bug in emacs-lisp source block, Eric S Fraga, 2021/09/07
- Re: Bug Re: Greater than, less than bug in emacs-lisp source block,
John Kitchin <=