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: Sun, 28 Jun 2015 17:47:37 +0200	[thread overview]
Message-ID: <87zj3jn8bq.fsf@nl106-137-147.student.uu.se> (raw)
In-Reply-To: 87mvzjc27u.fsf@mbork.pl

Marcin Borkowski <mbork@mbork.pl> writes:

> (One other case I like keyboard macros is
> rearranging things, e.g., paragraphs, in a buffer;
> I open two windows with the same buffer, but with
> the point in different places, and record a macro
> which kills something in one window and yanks in the
> other one. Very handy.)

(defun kill-and-yank-other-window (beg end)
  (interactive "r")
  (kill-region beg end)
  (save-window-excursion
    (other-window 1)
    (yank) ))

> If you edit text, which is somehow “graphical”, why
> shouldn’t the code reflect the problem? Not that it
> has to, but IMHO there’s nothing wrong if it does.

It is good that the code is "graphical" (perhaps
"visual" is a better word) in terms of simple but
life-important features like font lock (syntax
highlighting) and indentation, as well as the
programmer's expert touch and personality to arrange
code his way. This makes it easier to *see* the code,
rather than having to *read* it all the time.
For example, when I look at Lisp, I don't read the
code, I only see blondes and brunettes and...

No, those are nice little things (I mean, the font
locks etc.) to make it pleasant and productive, and
because of that, they are very important despite
their littleness.

However, it is not good if structure and purpose is
expressed and controlled like that in a deeper sense.
The code - the functions and keywords - should
do that.

When you want to change something, you shouldn't
"rearrange" the code into some new pattern in the
fourth dimension of Nirvana, you should change
typically but a few function invocations or
variable settings.

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




  reply	other threads:[~2015-06-28 15:47 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
     [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 [this message]
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=87zj3jn8bq.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.