emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* From macros to elisp programming?
@ 2021-12-06 13:42 Ypo
  2021-12-06 18:08 ` András Simonyi
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ypo @ 2021-12-06 13:42 UTC (permalink / raw)
  To: Org-mode

[-- 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 --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-12-07 15:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-06 13:42 From macros to elisp programming? Ypo
2021-12-06 18:08 ` 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

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).