GNU bug report logs - #23245
25.0.92; cua-mode inhibits deactivate-region-hook

Previous Next

Package: emacs;

Reported by: Thomas Frössman <thomasf <at> jossystem.se>

Date: Fri, 8 Apr 2016 16:55:01 UTC

Severity: normal

Tags: moreinfo

Found in version 25.0.92

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Thomas Frössman <thomasf <at> jossystem.se>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: 25.0.92; cua-mode inhibits deactivate-region-hook
Date: Fri, 8 Apr 2016 18:52:48 +0200
[Message part 1 (text/plain, inline)]
doh, I mixed up the mark/region functions a bit while testing.. Maybe it's
not a bug then. I will continue to investigate later.

On Fri, Apr 8, 2016 at 6:50 PM, Thomas Frössman <thomasf <at> jossystem.se>
wrote:

> I noticed that https://github.com/fgallina/region-bindings-mode started
> to fail to deactive from time to time after I swiched to the emacs-25
> branch.
>
> I think I have tracked the problem down to cua-mode being the thing
> which causes this.
>
> I have been able to reproduce this problem.  If i use the init.el below
> and repeatadly activates and deactivates regions for a while an AM
> is logged to the messages buffer without a DM following the
> deactivation, after this (region-active-p) evaluates to nil but there
> was to deactivation hook fired.
>
> (defun AM ()
>   (message "AM"))
> (defun DM ()
>   (message "DM" ))
> (add-hook 'activate-mark-hook 'AM)
> (add-hook 'deactivate-mark-hook 'DM)
> (cua-mode)
>
>
>
> In GNU Emacs 25.0.92.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.7)
>  of 2016-04-08 built on transwhale
> Repository revision: 7ad1d075b940f276adaf3b6bb0c024079c403f80
> Windowing system distributor 'The X.Org Foundation', version 11.0.11702000
> System Description:     Ubuntu 15.10
>
> Configured using:
>  'configure --with-x-toolkit=gtk3 --with-file-notification=inotify
>  --without-pop --without-toolkit-scroll-bars --with-xwidgets'
>
> Configured features:
> XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
> ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB GTK3 X11 XWIDGETS
>
> Important settings:
>   value of $LC_COLLATE: sv_SE.utf8
>   value of $LC_CTYPE: sv_SE.utf8
>   value of $LC_MESSAGES: en_US.utf8
>   value of $LC_MONETARY: sv_SE.utf8
>   value of $LC_NUMERIC: sv_SE.utf8
>   value of $LC_TIME: sv_SE.utf8
>   value of $LANG: en_US.utf8
>   locale-coding-system: utf-8
>
>


-- 
Thomas Frössman
http://t.jossystem.se
[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 235 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.