From: Ypo <ypuntot@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: From macros to elisp programming?
Date: Mon, 6 Dec 2021 14:42:35 +0100 [thread overview]
Message-ID: <5b93e27d-df22-3799-7b35-3078472a5154@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 991 bytes --]
Hi
I am able to make macros, but I think I am far away from Lisp programming.
Is there a path to go from macros to elisp programming? For example, the
last macro I've made is for transforming the name of some headlines,
adding in front of them a part from the previous headline. This is the
elisp code of the macro:
#+BEGIN_SRC
(fset 'SanzTema5
(kmacro-lambda-form [?\C-a ?\M-f ?\M-b ?\C- ?\M-f ?\M-f ?\M-f ?\M-f
?\M-f ?\M-f ?\M-f ?\M-f ?\M-f ?\M-w ?\C-c ?\C-n ?\C-a ?\M-f ?\M-b ?\C-y
? ?- ? ?\C-e ?\M-b ?\M-f ?\"] 0 "%d"))
#+END_SRC
Using that code, from these headlines:
*** Sanz Aparicio et al. (2019) "5 Los Motivos Adquiridos, Menéndez
Balaña" (pp. 95-118)
**** INTRODUCCIÓN
I get modified the second headline:
*** Sanz Aparicio et al. (2019) "5 Los Motivos Adquiridos, Menéndez
Balaña" (pp. 95-118)
**** Sanz Aparicio et al. (2019) "5 Los Motivos Adquiridos - INTRODUCCIÓN"
Are macros near to elisp programming or they are two different worlds?
Ypo
[-- Attachment #2: Type: text/html, Size: 1886 bytes --]
next reply other threads:[~2021-12-06 13:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-06 13:42 Ypo [this message]
2021-12-06 18:08 ` From macros to elisp programming? András Simonyi
2021-12-06 18:58 ` Ypo
2021-12-06 22:10 ` Tim Cross
2021-12-07 9:30 ` Marcin Borkowski
2021-12-07 2:11 ` Eduardo Ochs
2021-12-07 12:55 ` Ypo
2021-12-07 15:16 ` Eduardo Ochs
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5b93e27d-df22-3799-7b35-3078472a5154@gmail.com \
--to=ypuntot@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.