[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: No kill-ring-save region signalling in transient-mark-mode
From: |
Kim F. Storm |
Subject: |
Re: No kill-ring-save region signalling in transient-mark-mode |
Date: |
30 Apr 2004 14:18:00 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Milan Zamazal <address@hidden> writes:
> Sure, but I think there is currently no good way to detect that a user
> has disabled region highlighting some way.
Looking at the region face does seem to be a "good way".
Does the following patch give good results ?
*** simple.el 27 Apr 2004 11:42:32 +0200 1.639
--- simple.el 30 Apr 2004 14:14:26 +0200
***************
*** 2144,2150 ****
;; look like a C-g typed as a command.
(inhibit-quit t))
(if (pos-visible-in-window-p other-end (selected-window))
! (unless transient-mark-mode
;; Swap point and mark.
(set-marker (mark-marker) (point) (current-buffer))
(goto-char other-end)
--- 2144,2151 ----
;; look like a C-g typed as a command.
(inhibit-quit t))
(if (pos-visible-in-window-p other-end (selected-window))
! (unless (and transient-mark-mode
! (face-background 'region))
;; Swap point and mark.
(set-marker (mark-marker) (point) (current-buffer))
(goto-char other-end)
Re: No kill-ring-save region signalling in transient-mark-mode, Juri Linkov, 2004/04/30