From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: No kill-ring-save region signalling in transient-mark-mode
Date: 30 Apr 2004 14:18:00 +0200 [thread overview]
Message-ID: <m3llkdaccn.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <87vfjhre9z.fsf@zamazal.org>
Milan Zamazal <pdm@zamazal.org> 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)
next prev parent reply other threads:[~2004-04-30 12:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-30 7:47 No kill-ring-save region signalling in transient-mark-mode Milan Zamazal
2004-04-30 9:27 ` Juri Linkov
2004-04-30 10:49 ` Kim F. Storm
2004-04-30 9:44 ` Milan Zamazal
2004-04-30 12:18 ` Kim F. Storm [this message]
2004-04-30 10:37 ` Milan Zamazal
2004-04-30 19:59 ` Kim F. Storm
2004-05-01 17:50 ` Richard Stallman
2004-05-01 9:44 ` Richard Stallman
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=m3llkdaccn.fsf@kfs-l.imdomain.dk \
--to=storm@cua.dk \
--cc=emacs-devel@gnu.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.