mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(delete-selection-pre-hook): Don't set this-command
to `ignore' if the region is empty.
This commit is contained in:
parent
b23bad0b77
commit
10e922bdd2
2 changed files with 8 additions and 3 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2001-07-31 Gerd Moellmann <gerd@gnu.org>
|
||||
|
||||
* delsel.el (delete-selection-pre-hook): Don't set this-command
|
||||
to `ignore' if the region is empty.
|
||||
|
||||
* international/mule.el (set-keyboard-coding-system): Set
|
||||
keyboard-coding-system.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
;;; delsel.el --- delete selection if you insert
|
||||
|
||||
;; Copyright (C) 1992, 1997, 1998 Free Software Foundation, Inc.
|
||||
;; Copyright (C) 1992, 1997, 1998, 2001 Free Software Foundation, Inc.
|
||||
|
||||
;; Author: Matthieu Devin <devin@lucid.com>
|
||||
;; Maintainer: FSF
|
||||
|
|
@ -96,8 +96,10 @@ any selection."
|
|||
(current-kill 1))
|
||||
(delete-active-region))
|
||||
((eq type 'supersede)
|
||||
(delete-active-region)
|
||||
(setq this-command 'ignore))
|
||||
(let ((empty-region (= (point) (mark))))
|
||||
(delete-active-region)
|
||||
(unless empty-region
|
||||
(setq this-command 'ignore))))
|
||||
(type
|
||||
(delete-active-region))))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue