From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oEP2G44TrmGtpwAAgWs5BA (envelope-from ) for ; Mon, 06 Dec 2021 14:43:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aHCSF44TrmHhYgAAbx9fmQ (envelope-from ) for ; Mon, 06 Dec 2021 13:43:42 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1E59A2DEA0 for ; Mon, 6 Dec 2021 14:43:42 +0100 (CET) Received: from localhost ([::1]:45822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muEHN-0004OL-78 for larch@yhetil.org; Mon, 06 Dec 2021 08:43:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muEGR-0004Mq-1X for emacs-orgmode@gnu.org; Mon, 06 Dec 2021 08:42:44 -0500 Received: from [2a00:1450:4864:20::336] (port=45999 helo=mail-wm1-x336.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1muEGP-0003A0-Hb for emacs-orgmode@gnu.org; Mon, 06 Dec 2021 08:42:42 -0500 Received: by mail-wm1-x336.google.com with SMTP id g191-20020a1c9dc8000000b0032fbf912885so7628021wme.4 for ; Mon, 06 Dec 2021 05:42:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:content-language:to:from :subject; bh=5m5Z7coZ0x2KOjJ5mK28ey638thVuREONZNjmKdghdQ=; b=ScbzL09WlyHeUetPch/0hE7Q50t8/WILI1ZQCONj3vC6lMeC1DG5MiKx87pRzoa4rk dL3mtlMWSTjgzHK1hgH2uAMEqWZeXmFQs94hIYq+KVYv2GVd6rrCGpxjXw0tGqjthf+U qsCSAvXu0XeACwTjVHSuAu2dIsDJX+UUZxOePz4yoe7NOXWL1K3YefygqoGHK1pq/RFN O4NB0Gu53myI1CzDLSbN1jjFtzwwmns33HUAItAvMOYu3o2IUg8dGGIFIy1NfjZJPJIi iSwRtOsUo7BjdkYOMA6DZYtH3MmzSo4t0aTpreZlXhF+Kck5CI4ixeqH5O7OwkIX7jPP QZUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:from:subject; bh=5m5Z7coZ0x2KOjJ5mK28ey638thVuREONZNjmKdghdQ=; b=Deo3agFViZHuxSy1VClGHP/qRDe/LwtV6/vJFMS8RUxFgyg4oyEYu0J5pfJhMBXRNf N2e+O3eRaHsW0pIhZaNe+DoeIvb8H8jMYFe5Y2MXJluYIivTcSV/ZixadcT9IvAE4/q2 ctvSTxPOu1XKfFm+0XqTP6/bvtSNxzw3P/f42FsMyZnEhqxTJLBq0twbyy6nGT5PW1u6 qqpsTcsN/jUyaAJIkAF+2GLE6r7t778Z8bdJXUWDmbQ2LsiPVY6lnWI8nLCVsU1wedDA axRhomyyiu58j04QZItEaeJzmZMb9LkFIObaWETyBzzHBQYBPYKByS7GUvtC6mssTHGI 5lWw== X-Gm-Message-State: AOAM533CH1efm9ynIp3IELJ6yG8XNS1FzztkBzfnA2PyDGYZ9Fzn27Kw FVFcwAluyBr3j5cU1PwGOHz+rJB2KFBgqA== X-Google-Smtp-Source: ABdhPJwWnJRny7JeTrEcm9gtg/6sObrU6HbLV+ohwUYCMe7axekse5xbLBEVuoAkroLSXmdpKMfB1A== X-Received: by 2002:a1c:9842:: with SMTP id a63mr39083792wme.102.1638798158241; Mon, 06 Dec 2021 05:42:38 -0800 (PST) Received: from [192.168.0.97] (static-210-200-229-77.ipcom.comunitel.net. [77.229.200.210]) by smtp.gmail.com with ESMTPSA id w22sm10638956wmi.27.2021.12.06.05.42.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Dec 2021 05:42:37 -0800 (PST) Content-Type: multipart/alternative; boundary="------------OJ8cb3QIVUb6xQRdVneh1liI" Message-ID: <5b93e27d-df22-3799-7b35-3078472a5154@gmail.com> Date: Mon, 6 Dec 2021 14:42:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Content-Language: en-GB To: Org-mode From: Ypo Subject: From macros to elisp programming? X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::336 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=ypuntot@gmail.com; helo=mail-wm1-x336.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638798222; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=5m5Z7coZ0x2KOjJ5mK28ey638thVuREONZNjmKdghdQ=; b=qWM7LgMcoiP6ds2zbRbPlKvi7ZCGkYIxnyp2JPV1w1taGWh+/gJK8zwi43GbYecm9AbBmg 93kFthDoZkInquDD2f/X4Wv6civGPIu/+1j2gsnG77LdGrR94PExpqTrmyNZtNy0w949cH aFczeAujFT33uOXqs+l/4d/Pe/WSIsg6VQo/UhdsAYZ32GT0Qk4NotXn4PVANwaM2cKDlS z0YB1oMslaZrC0TPxU4VhD+L+BBuAJPiaq8Dxq+9fkvBtVktvFeknjpM3CVCRMum15Oa+/ t6TSPhGuIIBUSx2tuICLgPX2oFFqwSJnyRQANojY6hb0LmJ/EntNcGZzKOZevQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638798222; a=rsa-sha256; cv=none; b=ZXdVGchcSXmm/TVIBQpVerhHR297y6Th7pI0Y/X38iQxTchWaujtQ15Fn0H6XTt9fd349b MFgT06sQJ0q/c2qpoU2Rv01G4anVlYRJNvBqmqcmynB11PR02meC5GdAk7qgvIxVOFP3Jk uj+Zg9COXgbl18TsX7jQSm8Q5kb/EsVssyptqHy+lEFCowYqZbS8L3mOsGgMlvyGFEf2Y3 muYc2uhM3s/q88GPslZl8uuuR+yg6ievDh+5/9Hf7zs8TCu6CoUmJgpxEmxWhS1E9ANASq SDubwaUEA4oP7LoyFCSFOzYrK+qqUMu3DOnsWtheSmgiYJmPJTv8R0QNJBsRRg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ScbzL09W; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ScbzL09W; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1E59A2DEA0 X-Spam-Score: -1.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: XNOFiV3Slh8B This is a multi-part message in MIME format. --------------OJ8cb3QIVUb6xQRdVneh1liI Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------OJ8cb3QIVUb6xQRdVneh1liI Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

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

--------------OJ8cb3QIVUb6xQRdVneh1liI--