all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: Should undefined behavior be encouraged in Emacs?
Date: Fri, 07 Oct 2011 16:44:44 +0900	[thread overview]
Message-ID: <87y5wxqm8j.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <m31uupswu2.fsf@stories.gnus.org>

Lars Magne Ingebrigtsen writes:

 > I, like (I'm assuming) all other oldey-timey Emacs users :-),

You're wrong, as all sensible folk expect from the word "assuming". :-)

I've been using Emacs since ESC-ESC-ESC produced scathing remarks
about inability to hack buffers and hacking buffers meant writing TECO
code.  Does that count as "oldey-timey"?

 > disabled `transient-mark-mode' the first chance I got.

Indeed, just after I switched to XEmacs, `zmacs-regions' was enabled
by default, and I immediately overrode the default.  That was a
mistake, as I discovered about a month later when the maintainers
requested that we try it for a week and report experiences and
preferences.  I found that I liked it, for several reasons, and the
change in default was upheld because most commentators agreed.  That
was in like 1996 when everybody was an oldey-timey Emacs user 'cause
that was oldey-times.

 > And the reason for that is that `C-x C-x' activates the region,
 > which makes it impossible to use that command to jump around in
 > buffers.

Of course it doesn't make it impossible.  You just don't like it,
either because of the risk of deleting something you don't want to
reproduce, or because you find the highlighting annoying, or maybe for
some other reason I don't recall after a decade and a half of correct
usage.<wink/>

 > Which I do constantly.

So did I, although quite recently I've found myself using C-u C-SPC a
lot more.  Specifically, C-x 2 C-u C-SPC, but several other variants
as well.  This turns out to be much more powerful for me, although the
extra power is not useful every day so far.  I'm still working out
idioms.

 > If that rather odd overloading of the `C-x C-x' command went away,

What's odd about it?  One of the use cases for C-x C-x is to make the
region visible, either subtly by the motion of point, or more or less
garishly with highlighting.  Even in my "traditional" usage pattern I
often used that for confirmation that the region is the one I want to
operate on, almost as often as I used it for the motion itself.  With
active regions on, I get that confirmation even when I didn't request
it specifically, and occasionally that forestalls mistakes.

I'm not at all denying your usage pattern, just your claim that it's
universal among long-time users.  It's not, and there are good reasons
for the alternatives, just as there are good reasons why you like your
own patterns.

 > I might start using `transient-mark-mode'.

C'mon, Lars, I'm sure you could do that for yourself.  Why don't you
try it and see?  After all, you'd be the odd one out, people who
already use t-m-m evidently *want* the activating behavior.



  parent reply	other threads:[~2011-10-07  7:44 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-03  1:39 Should undefined behavior be encouraged in Emacs? Paul Eggert
2011-10-03  3:11 ` Stefan Monnier
2011-10-03  6:39   ` Andreas Röhler
2011-10-03  7:29     ` Stephen J. Turnbull
2011-10-03  8:58       ` Andreas Röhler
2011-10-06  2:17         ` Stephen J. Turnbull
2011-10-06 17:30           ` Richard Stallman
2011-10-06 19:49             ` Stephen J. Turnbull
2011-10-06 20:08               ` Andreas Röhler
2011-10-06 20:12                 ` Lars Magne Ingebrigtsen
2011-10-06 20:46                   ` Eli Zaretskii
2011-10-07  5:23                   ` Andreas Röhler
2011-10-07  7:44                   ` Stephen J. Turnbull [this message]
2011-10-07  7:52                     ` John Wiegley
2011-10-07 17:27                       ` Stephen J. Turnbull
2011-10-07  8:38                   ` Alan Mackenzie
2011-10-07 15:26                   ` Barry Warsaw
2011-10-07 18:06                     ` ken manheimer
2011-10-07 18:21                       ` Barry Warsaw
2011-10-07 18:46                       ` Óscar Fuentes
2011-10-07 19:59                         ` ken manheimer
2011-10-07 18:41                     ` Drew Adams
2011-10-08 13:49                   ` Miles Bader
2011-10-08 14:34                     ` Drew Adams
2011-10-03 13:16       ` Stefan Monnier
2011-10-03  9:20   ` Alan Mackenzie
2011-10-03  9:52     ` Eli Zaretskii
2011-10-03  8:29 ` Andreas Schwab
2011-10-03  9:53   ` Eli Zaretskii
2011-10-03 13:13 ` Richard Stallman
2011-10-03 15:15   ` Dave Abrahams
2011-10-04  1:55     ` Richard Stallman
2011-10-04  2:18       ` Dave Abrahams
2011-10-03 16:14   ` Eli Zaretskii
2011-10-03 16:27     ` Andreas Schwab
2011-10-03 16:41       ` Eli Zaretskii
2011-10-04  1:55     ` Richard Stallman
2011-10-03 20:53   ` Paul Eggert
2011-10-03 14:49 ` Dave Abrahams

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=87y5wxqm8j.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.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.