|
From: | Charles Millar |
Subject: | Greater than, less than bug in emacs-lisp source block |
Date: | Thu, 2 Sep 2021 14:10:21 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
Set up:GNU Emacs 28.0.50 (build 344, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0) of 2020-12-31 Org mode version 9.4.6 (release_9.4.6-637-gd70f28 @ /usr/local/share/org-mode/lisp/)
The following code will evaluate #+begin_src emacs-lisp (defun Foo () (if (= 2 4) bar)) #+end_src #+RESULTS: : Foo and the opening and closing parentheses match. If a greater than is inserted instead of equals, thus #+begin_src emacs-lisp (defun Foo () (if (> 2 4) bar)) #+end_srcit apparently evaluates, however, the closing parenthesis immediately following the "4" is paired with the opening paren before "if" and not the opening paren immediately before the ">"
A "less than" results with stranger parenthesis matching - the closing paren after the "4" matches no others; the closing paren immediately after "bar" matches the opening paren before "if"
Charlie Millar
[Prev in Thread] | Current Thread | [Next in Thread] |