Message from discussion
Copy/paste issue.
Received: by 10.68.125.201 with SMTP id ms9mr4602230pbb.3.1336372072656;
Sun, 06 May 2012 23:27:52 -0700 (PDT)
Path: pr3ni13400pbb.0!nntp.google.com!news1.google.com!news.glorb.com!usenet.stanford.edu!not-for-mail
From: "Drew Adams" <drew.ad...@oracle.com>
Newsgroups: gnu.emacs.help
Subject: RE: Copy/paste issue.
Date: Sun, 6 May 2012 23:27:29 -0700
Lines: 27
Approved: help-gnu-em...@gnu.org
Message-ID: <mailman.730.1336372071.855.help-gnu-emacs@gnu.org>
References: <jl6g99$jpa$1@dough.gmane.org><mailman.189.1333201685.20052.help-gnu-emacs@gnu.org>
<jo7ih6$p8q$1@reader1.panix.com>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
X-Trace: usenet.stanford.edu 1336372072 11884 208.118.235.17 (7 May 2012 06:27:52 GMT)
X-Complaints-To: action@cs.stanford.edu
To: "'David Combs'" <dkco...@panix.com>, <help-gnu-em...@gnu.org>
Envelope-to: help-gnu-em...@gnu.org
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <jo7ih6$p8q$1@reader1.panix.com>
Thread-Index: Ac0sCLKEvtEr4fTpRGSNoLbEX/c64wAEIzNA
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
X-Source-IP: ucsinet22.oracle.com [156.151.31.94]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 148.87.113.117
X-BeenThere: help-gnu-em...@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
<mailto:help-gnu-emacs-requ...@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-em...@gnu.org>
List-Help: <mailto:help-gnu-emacs-requ...@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
<mailto:help-gnu-emacs-requ...@gnu.org?subject=subscribe>
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: 7bit
> Now, I'd never hear do delete-selection-mode, so I did a C-h f on it:
>
> Question: what are some of the uses of this mode? Maybe name
> 2 or 3 uses, so I can understand if it's something I should get
> familiar with.
`delete-selection-mode' is quite similar to what you are (probably) used to
outside of Emacs: after you select text, what you type replaces the selection.
And Backspace deletes it. (To cancel selection, hit `C-g'.)
>From (emacs) `Using Region':
,----
| By default, text insertion occurs normally even if the mark is
| active--for example, typing `a' inserts the character `a', then
| deactivates the mark. If you enable Delete Selection mode, a minor
| mode, then inserting text while the mark is active causes the text in
| the region to be deleted first. To toggle Delete Selection mode on or
| off, type `M-x delete-selection-mode'.
`----
[IMHO, `delete-selection-mode' should be the default behavior for Emacs. It
took a couple decades to get even `transient-mark-mode' accepted as the default.
(`transient-mark-mode' is a like a neutered `delete-selection-mode'.) Perhaps
in a couple more decades `delete-selection-mode' will be accepted. ;-)]