all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: How to delete selection on keypress, paste etc
       [not found] <slrnatl0ce.71j.ignoramus20016@nospam.invalid>
@ 2002-11-19 18:28 ` Michael Slass
  2002-11-20  7:46   ` Mats Larsson
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Slass @ 2002-11-19 18:28 UTC (permalink / raw)


ignoramus20016@NOSPAM.20016.invalid (Igor20016) writes:

>My xemacs somehow was set to delete selection (region) if it was
>active and I pressed a key, pasted, or pressed DEL.
>
>It no longer does it and just appends to the region without
>deleting it. How can I change that behaviour?
>
>igor

,----[ C-h f delete-selection-mode RET ]
| delete-selection-mode is an interactive autoloaded Lisp function in `delsel'.
| [Arg list not available until function definition is loaded.]
| 
| Toggle Delete Selection mode.
| With prefix ARG, turn Delete Selection mode on if and only if ARG is
| positive.
| 
| When Delete Selection mode is enabled, Transient Mark mode is also
| enabled and typed text replaces the selection if the selection is
| active.  Otherwise, typed text is just inserted at point regardless of
| any selection.
`----

This is for GNU emacs; don't know whether it works for XEmacs.
-- 
Mike Slass

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to delete selection on keypress, paste etc
  2002-11-19 18:28 ` How to delete selection on keypress, paste etc Michael Slass
@ 2002-11-20  7:46   ` Mats Larsson
  2002-11-20  8:39     ` Stephen J. Turnbull
  0 siblings, 1 reply; 3+ messages in thread
From: Mats Larsson @ 2002-11-20  7:46 UTC (permalink / raw)


On 2002-11-19 19:28, Michael Slass wrote:

> ,----[ C-h f delete-selection-mode RET ]
> | delete-selection-mode is an interactive autoloaded Lisp function in 
> `delsel'.
> | [Arg list not available until function definition is loaded.]
> |
> | Toggle Delete Selection mode.
> | With prefix ARG, turn Delete Selection mode on if and only if ARG is
> | positive.
> |
> | When Delete Selection mode is enabled, Transient Mark mode is also
> | enabled and typed text replaces the selection if the selection is
> | active.  Otherwise, typed text is just inserted at point regardless of
> | any selection.
> `----
>
> This is for GNU emacs; don't know whether it works for XEmacs.


The equivalent for XEmacs is pending-delete-mode. But I do wonder why 
hitting the Tab key doesn't replace the selection. Bug or feature?

/MOL

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to delete selection on keypress, paste etc
  2002-11-20  7:46   ` Mats Larsson
@ 2002-11-20  8:39     ` Stephen J. Turnbull
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen J. Turnbull @ 2002-11-20  8:39 UTC (permalink / raw)


>>>>> "Mats" == Mats Larsson <Mats.Larsson@uab.ericsson.se> writes:

    Mats> The equivalent for XEmacs is pending-delete-mode. But I do
    Mats> wonder why hitting the Tab key doesn't replace the
    Mats> selection. Bug or feature?

Feature.  The idea is that TAB and LF (C-j) characters are generally
bound to formatting functions which manipulate leading whitespace,
rather than general text-changing functions.

This possibly should be customizable, but it's not obvious what
behavior would be least astonishing here.  :-)

-- 
Institute of Policy and Planning Sciences     http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-11-20  8:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <slrnatl0ce.71j.ignoramus20016@nospam.invalid>
2002-11-19 18:28 ` How to delete selection on keypress, paste etc Michael Slass
2002-11-20  7:46   ` Mats Larsson
2002-11-20  8:39     ` Stephen J. Turnbull

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.