From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: Greg Minshall <minshall@umich.edu>,
Tim Cross <theophilusx@gmail.com>,
org-mode-email <emacs-orgmode@gnu.org>,
Arthur Miller <arthur.miller@live.com>
Subject: Re: Bug Re: Greater than, less than bug in emacs-lisp source block
Date: Tue, 07 Sep 2021 16:23:40 -0400 [thread overview]
Message-ID: <m25yvc6shx.fsf@andrew.cmu.edu> (raw)
In-Reply-To: <87pmtk39mn.fsf@ucl.ac.uk>
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
prev parent reply other threads:[~2021-09-07 20:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <b2a35533-82cd-b585-b1ab-3ca21adcafdf.ref@verizon.net>
2021-09-02 18:10 ` Greater than, less than bug in emacs-lisp source block Charles Millar
2021-09-02 18:24 ` John Kitchin
2021-09-02 22:36 ` Arthur Miller
2021-09-03 11:14 ` Fwd: " Charles Millar
2021-09-03 11:12 ` Bug " Charles Millar
2021-09-03 12:00 ` John Kitchin
2021-09-03 13:40 ` Tim Cross
2021-09-03 16:02 ` John Kitchin
2021-09-04 21:05 ` Tim Cross
2021-09-05 5:55 ` Arthur Miller
2021-09-05 8:37 ` Tim Cross
2021-09-05 10:34 ` Arthur Miller
2021-09-06 4:29 ` Greg Minshall
2021-09-07 11:31 ` Eric S Fraga
2021-09-07 20:23 ` John Kitchin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m25yvc6shx.fsf@andrew.cmu.edu \
--to=jkitchin@andrew.cmu.edu \
--cc=arthur.miller@live.com \
--cc=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=minshall@umich.edu \
--cc=theophilusx@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).