all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs Book Vs Emacs Manuals
Date: Wed, 01 Jul 2015 02:00:39 +0200	[thread overview]
Message-ID: <876164ycew.fsf@nl106-137-147.student.uu.se> (raw)
In-Reply-To: m2r3otf83l.fsf@fastmail.fm

Filipp Gunbin <fgunbin@fastmail.fm> writes:

> A macro is a program, too, and it's editable as you
> know, but written in a different language.
> When I record a macro I get some code in the end,
> yet it's not elisp.

A macro is a program but is it in another language?
If the inputs are commands, and the commands are
Elisp, isn't the language actually a subset of Elisp?

And this is what I've said since day one, macros is
poor man's programming.

Or do you mean how that language is perceived
and/or displayed?

> That's what I meant by saying that macros help write
> code _using interactive editor facilities_ - that
> is, not directly typing language syntactic
> constructs. It's quicker and simpler to record
> a macro, but the cost of it is the lack of
> general usefulness.

It may be quicker if you do not make any mistakes and
if you can envision what to do from start to finish.
In Elisp you don't have to worry about the interactive
distinction and instead you are able to use the full
power of the tool Emacs. But yes, I'm sure some people
who did lots of it compared to the amount of Elisp
they did, it makes sense it is quicker for them.

> This is obvious, and I'm writing it because you time
> after time refuse to admit that sometimes macros are
> better than elisp. I suppose you have reasons to say
> that, that's why this discussion can be interesting
> to me.

The reason I have for saying that is that it is
logical: you can do everything with Elisp that you can
do with macros, but not remotely so the other
way around.

I also say that because I haven't seen any good
examples where a macro saves the day.

I also say that because of a more bigger view.
Nother else works like that. Say that ten guys are
digging a hole with shovels. That sounds pretty fun,
ey? Unfortunately, some guy thought that to be
inefficient so he constructed the excavator. Now, that
machinery does the job as well as the ten guys but it
doesn't look or work like the ten guys at all. This is
the Elisp approach. The macro approach would be to
construct ten robots that look exactly like the guys
and have them to the exact same thing to produce the
exact same result.

If A solves problem B, and I want to solve B in
another way, I don't think "how can I replicate A?",
instead I examine B to think how I can solve it in
terms of the problem itself. If I can't find
a solution, I might examine A to learn how to do it,
but not in order to exactly replicate it!

> Yes, thanks, that was a rhetorical question :-)

*nod* (note then smiley)

> Meant to underline that programs written in
> a language not general enough to handle all and
> everything also can be useful sometimes, and awk is
> a good example, I think.

Yeah, but are macros more specific than Elisp just
because they are less general?

No, I think this is rather something on the human side
of the equation. I want to type the actual commands
and see them appear in front of me. You, perhaps do
not care about that and have it all in your fingertips
and muscle memory. And that is interesting because I'm
all into fingertips and muscle memory (finger habits)
as well...

-- 
underground experts united
http://user.it.uu.se/~embe8573




  reply	other threads:[~2015-07-01  0:00 UTC|newest]

Thread overview: 137+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-08 10:06 Emacs Book Vs Emacs Manuals Vaidheeswaran C
2015-05-08 10:36 ` Shakthi Kannan
2015-05-08 10:43   ` Vaidheeswaran C
2015-05-08 11:08     ` tomas
2015-05-08 11:18     ` Shakthi Kannan
2015-05-08 19:10     ` Bob Proulx
2015-05-08 19:35       ` Marcin Borkowski
2015-05-10  2:48         ` Bob Proulx
     [not found]         ` <mailman.2686.1431226098.904.help-gnu-emacs@gnu.org>
2015-05-10  3:22           ` Emanuel Berg
2015-05-10 14:01           ` Rusi
2015-05-10 14:05             ` Pascal J. Bourguignon
2015-05-11 11:17               ` Phillip Lord
     [not found]               ` <mailman.2758.1431343034.904.help-gnu-emacs@gnu.org>
2015-05-11 11:27                 ` Pascal J. Bourguignon
2015-05-10 15:31             ` Drew Adams
2015-05-11 11:08             ` Phillip Lord
2015-05-15 16:15             ` MBR
2015-05-15 18:45               ` Doug Lewan
     [not found]               ` <mailman.3085.1431715560.904.help-gnu-emacs@gnu.org>
2015-05-15 20:18                 ` Emanuel Berg
2015-05-16  4:31                   ` Yuri Khan
2015-05-18 20:57                     ` Bob Proulx
2015-06-25 14:22                   ` Ken Goldman
2015-06-26 15:03                     ` Emanuel Berg
2015-06-26 20:21                       ` Marcin Borkowski
2015-06-26 22:42                         ` Emanuel Berg
2015-06-27 19:29                           ` MBR
2015-06-27 22:48                             ` Emanuel Berg
     [not found]                             ` <mailman.5813.1435445379.904.help-gnu-emacs@gnu.org>
2015-06-28  3:45                               ` Rusi
2015-06-28 14:34                                 ` Marcin Borkowski
2015-06-28 15:31                                   ` Emanuel Berg
2015-06-28 15:36                                     ` Marcin Borkowski
2015-06-28 15:53                                       ` Emanuel Berg
     [not found]                         ` <mailman.5747.1435358641.904.help-gnu-emacs@gnu.org>
2015-06-27  3:15                           ` Rusi
2015-06-27  5:02                             ` Bob Proulx
2015-06-27  8:25                               ` Marcin Borkowski
2015-06-27 11:56                                 ` Robert Thorpe
     [not found]                                 ` <mailman.5780.1435406221.904.help-gnu-emacs@gnu.org>
2015-06-27 14:44                                   ` Rusi
2015-06-27 17:46                                 ` Emanuel Berg
2015-06-27 17:42                             ` Emanuel Berg
2015-06-29 13:03                               ` Filipp Gunbin
2015-06-29 23:51                                 ` Emanuel Berg
2015-06-30  4:38                                   ` Vaidheeswaran C
2015-06-30 23:26                                     ` Emanuel Berg
     [not found]                                     ` <mailman.6072.1435707010.904.help-gnu-emacs@gnu.org>
2015-07-01  0:32                                       ` Dan Espen
2015-06-30  8:10                                   ` Marcin Borkowski
2015-06-30 23:40                                     ` Emanuel Berg
2015-06-30 16:56                                   ` Filipp Gunbin
2015-07-01  0:00                                     ` Emanuel Berg [this message]
     [not found]                             ` <mailman.5799.1435427076.904.help-gnu-emacs@gnu.org>
2015-06-27 18:12                               ` Rusi
2015-06-27 21:55                                 ` Stefan Monnier
2015-06-27 22:25                                   ` Emanuel Berg
2015-06-30 10:56                                   ` keyboard-macro facility recording commands (Was: Emacs Book Vs Emacs Manuals) Steinar Bang
     [not found]                                 ` <mailman.5809.1435442174.904.help-gnu-emacs@gnu.org>
2015-06-27 22:06                                   ` Emacs Book Vs Emacs Manuals Pascal J. Bourguignon
2015-06-27 22:40                                 ` Emanuel Berg
2015-06-28 14:55                                   ` Marcin Borkowski
2015-06-28 15:47                                     ` Emanuel Berg
2015-06-25 14:16               ` Ken Goldman
     [not found]             ` <mailman.3077.1431706537.904.help-gnu-emacs@gnu.org>
2015-05-15 20:15               ` Emanuel Berg
2015-05-08 10:53 ` Tassilo Horn
2015-05-08 13:39   ` Phillip Lord
2015-05-08 14:34     ` Eli Zaretskii
2015-05-08 14:38     ` Tassilo Horn
2015-05-08 15:09       ` Phillip Lord
2015-05-08 15:41         ` Tassilo Horn
2015-05-08 21:54           ` Stefan Monnier
2015-05-09 10:00           ` Vaidheeswaran C
2015-05-10 14:31         ` Steinar Bang
     [not found]     ` <mailman.2604.1431095644.904.help-gnu-emacs@gnu.org>
2015-05-08 14:50       ` Barry Margolin
2015-05-08 15:01         ` Eli Zaretskii
2015-05-08 22:06           ` Stefan Monnier
2015-05-09  9:06             ` Eli Zaretskii
2015-05-09  9:18             ` Vaidheeswaran C
2015-05-09 10:38               ` Eli Zaretskii
2015-05-10  6:47                 ` Vaidheeswaran C
2015-05-10 15:01                   ` Eli Zaretskii
2015-05-11  5:30                     ` Vaidheeswaran C
2015-05-11 16:06                       ` Eli Zaretskii
2015-05-16  5:50                         ` Vaidheeswaran C
2015-05-16  7:32                           ` Eli Zaretskii
2015-05-17 15:35                             ` Vaidheeswaran C
2015-05-17 14:47                               ` Eli Zaretskii
2015-05-18  2:49                                 ` Vaidheeswaran C
2015-05-18 14:15                                   ` Eli Zaretskii
2015-05-19  5:50                                     ` Vaidheeswaran C
2015-05-19 15:07                                       ` Eli Zaretskii
2015-05-19 16:41                                       ` Filipp Gunbin
     [not found]                                     ` <mailman.3246.1432014638.904.help-gnu-emacs@gnu.org>
2015-05-19 23:58                                       ` Emanuel Berg
2015-05-10  2:45             ` Bob Proulx
2015-05-11 10:53           ` Phillip Lord
2015-05-11 15:58             ` Eli Zaretskii
2015-05-11 16:12               ` Stefan Monnier
2015-05-11 16:23                 ` Eli Zaretskii
2015-05-11 16:30                   ` Eli Zaretskii
2015-05-11 18:01                     ` Stefan Monnier
2015-05-11 20:38                     ` Marcin Borkowski
     [not found]                     ` <mailman.2820.1431376739.904.help-gnu-emacs@gnu.org>
2015-05-12  3:22                       ` Rusi
     [not found]                   ` <<83y4kvkrf5.fsf@gnu.org>
2015-05-11 17:12                     ` Drew Adams
2015-05-11 17:11                 ` Drew Adams
2015-05-11 18:06                   ` Stefan Monnier
2015-05-11 18:38                     ` Drew Adams
     [not found]                   ` <mailman.2806.1431367811.904.help-gnu-emacs@gnu.org>
2015-05-12  4:07                     ` Rusi
2015-05-12  8:15                       ` Rasmus
2015-05-12 16:11                       ` Eli Zaretskii
     [not found]                       ` <mailman.2872.1431447128.904.help-gnu-emacs@gnu.org>
2015-05-12 16:55                         ` Rusi
2015-05-12 17:45                           ` Eli Zaretskii
2015-05-13  7:47                             ` tomas
2015-05-13 12:10                               ` Filipp Gunbin
2015-05-13 12:32                                 ` tomas
2015-05-13 15:24                                   ` Filipp Gunbin
2015-05-13 16:37                               ` Eli Zaretskii
     [not found]                               ` <mailman.2958.1431535075.904.help-gnu-emacs@gnu.org>
2015-05-15  2:56                                 ` Rusi
2015-05-15  7:31                                   ` Eli Zaretskii
     [not found]                                   ` <mailman.3052.1431675095.904.help-gnu-emacs@gnu.org>
2015-05-15 11:12                                     ` Rusi
2015-05-15 13:09                                       ` Eli Zaretskii
2015-05-15 13:44                                         ` Phillip Lord
     [not found]                                         ` <mailman.3067.1431697490.904.help-gnu-emacs@gnu.org>
2015-05-15 14:01                                           ` Rusi
2015-05-15 14:36                                             ` Eli Zaretskii
     [not found]                           ` <mailman.2887.1431452758.904.help-gnu-emacs@gnu.org>
2015-05-13  1:09                             ` Rusi
2015-05-13  2:20                               ` Drew Adams
     [not found]                 ` <mailman.2797.1431364316.904.help-gnu-emacs@gnu.org>
2015-05-11 17:27                   ` Rusi
2015-05-20  0:21                 ` Robert Thorpe
2015-05-08 16:35     ` Sivaram Neelakantan
2015-05-09 10:14     ` Vaidheeswaran C
     [not found] ` <mailman.2592.1431081398.904.help-gnu-emacs@gnu.org>
2015-05-08 13:34   ` notbob
2015-05-08 15:50 ` Drew Adams
2015-05-09  9:49   ` Vaidheeswaran C
2015-05-09 14:21     ` Jude DaShiell
2015-05-08 19:10 ` Marcin Borkowski
2015-05-09  7:47   ` Eli Zaretskii
2015-05-09  8:07     ` Marcin Borkowski
2015-05-09  8:27       ` Eli Zaretskii
2015-05-09 17:34         ` Marcin Borkowski
2015-05-11 11:02     ` Phillip Lord
2015-05-11 16:03       ` Eli Zaretskii
2015-05-11 17:20         ` Phillip Lord
2015-05-11 18:04           ` Eli Zaretskii
     [not found]     ` <<87k2wfl6mo.fsf@newcastle.ac.uk>
     [not found]       ` <<83617zm78t.fsf@gnu.org>
2015-05-11 17:11         ` Drew Adams
     [not found] <mailman.2591.1431080443.904.help-gnu-emacs@gnu.org>
2015-05-09 22:59 ` Emanuel Berg
     [not found] <<mii1p5$ho1$1@ger.gmane.org>

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=876164ycew.fsf@nl106-137-147.student.uu.se \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@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.