[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Greater than, less than bug in emacs-lisp source block
From: |
Arthur Miller |
Subject: |
Re: Greater than, less than bug in emacs-lisp source block |
Date: |
Fri, 03 Sep 2021 00:36:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
John Kitchin <jkitchin@andrew.cmu.edu> writes:
> I think this issue is described in
> https://emacs.stackexchange.com/questions/50216/org-mode-code-block-parentheses-mismatch.
> There are also some
> solutions there.
I wasn't able to get that to work in my Emacs. I did something simpler though,
that seems to work for me:
#+begin_src emacs-lisp
(defmacro gt (n1 n2)
`(> ,n1 ,n2))
(defmacro gte (n1 n2)
`(>= ,n1 ,n2))
(defmacro lt (n1 n2)
`(< ,n1 ,n2))
(defmacro lte (n1 n2)
`(<= ,n1 ,n2))
;; example usage
(dolist (s templist)
(while (lt (length s) l)
(setq s (concat s " ")))
(push (concat "[ " s " ]") kwdlist))
#+end_src
- Greater than, less than bug in emacs-lisp source block, Charles Millar, 2021/09/02
- Re: Greater than, less than bug in emacs-lisp source block, John Kitchin, 2021/09/02
- Re: Greater than, less than bug in emacs-lisp source block,
Arthur Miller <=
- 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