From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thomas =?UTF-8?Q?Fr=C3=B6ssman?= Newsgroups: gmane.emacs.bugs Subject: bug#23245: 25.0.92; cua-mode inhibits deactivate-region-hook Date: Fri, 8 Apr 2016 18:52:48 +0200 Message-ID: References: <87egagt57g.fsf@jossystem.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0112c0228764a7052ffc0744 X-Trace: ger.gmane.org 1460136137 7349 80.91.229.3 (8 Apr 2016 17:22:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Apr 2016 17:22:17 +0000 (UTC) To: 23245@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 08 19:22:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aoa6j-0004tk-SM for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Apr 2016 19:22:10 +0200 Original-Received: from localhost ([::1]:57451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoa6j-0006RB-1B for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Apr 2016 13:22:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoa6d-0006OT-RH for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2016 13:22:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoa6c-0005jZ-JH for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2016 13:22:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoa6c-0005jS-Fo for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2016 13:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aoa6c-00030s-9W for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2016 13:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thomas =?UTF-8?Q?Fr=C3=B6ssman?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Apr 2016 17:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23245 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146013610511559 (code B ref -1); Fri, 08 Apr 2016 17:22:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Apr 2016 17:21:45 +0000 Original-Received: from localhost ([127.0.0.1]:54856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoa6L-00030N-7z for submit@debbugs.gnu.org; Fri, 08 Apr 2016 13:21:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoZeo-0002Hn-0r for submit@debbugs.gnu.org; Fri, 08 Apr 2016 12:53:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoZeh-000547-TE for submit@debbugs.gnu.org; Fri, 08 Apr 2016 12:53:12 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoZeh-000543-Q9 for submit@debbugs.gnu.org; Fri, 08 Apr 2016 12:53:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoZeg-0006o9-Hj for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2016 12:53:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoZef-00053d-AV for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2016 12:53:10 -0400 Original-Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:34159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoZee-00053V-UL for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2016 12:53:09 -0400 Original-Received: by mail-lf0-x234.google.com with SMTP id j11so83975932lfb.1 for ; Fri, 08 Apr 2016 09:53:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jossystem-se.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=I01ubKK5J3EaJUQTHjjP9ZftSQuEWSo6s1s7fa3I/H8=; b=x2FEKx0BRuQOcAf+1Vo2zoa7pA1OQBL77jN4tOXIDz2ClncWfmAbVrSO0bcA7V16oz o0g2aN7s+jJMyWyh/W9VN1Xy+ItRDcpTwS0y5vGnbkqTtvyisD3FOSlHejYTCyu19hZ9 L0QS5zwTi15XoFLkH2AmjPWkqol4zKfXRjvM93noYSXTefbGndDaj2FhRuN4hDIv5gry g7s/fjpVulWdp9d3Cj4ilJ2yj1Utm/pFUC96PLRo35w6cTGMRTUz1Z41XnqfwkNAou62 9c5/ALrkEkCzjwM5o1ryQMyFFhO6owbpwZZz6NQzZ3rQ7UW0NoWq59sah2k0kU4niDhx N63Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=I01ubKK5J3EaJUQTHjjP9ZftSQuEWSo6s1s7fa3I/H8=; b=Et9KRnj0JGlcJslGKN6MWIEV281mix7p0SgerqDWliyTqE6My/QeNGFl7r1q2s+LQI EaTk/AMS4AkvcSmSCsiRafqHUCu+V16/WzTlQv4qLh6toRK+DfRN4EYBj8kJ9A247fwL c+8uv0iG6c6Freai6LIGxEtXG/dSuQUSJ4KkJwp17zX3UxkuS1zW+whWArZSHjtL0y0e /NnylHoupOIbZjX1uwFu3WXepRH8oWy67RCxB5FMwsSmpVgRfsZqs/JPFg1gOt95xgXc Z4jCFEq3FiPE98tmAzlFEgE+BFXvCmoobv6Ectow6UBLzmxTXGiZpH93tvzzvT9c+xou l+YA== X-Gm-Message-State: AD7BkJI+sCCXhgEUBiqSQ/W5EIMQbK7FmI/EZRwGoDFuPK2J3kw5l/ilWAc9xXJ8VpcaKVSlccx66orfd15Ttg== X-Received: by 10.112.125.9 with SMTP id mm9mr3307617lbb.113.1460134388123; Fri, 08 Apr 2016 09:53:08 -0700 (PDT) Original-Received: by 10.25.154.7 with HTTP; Fri, 8 Apr 2016 09:52:48 -0700 (PDT) In-Reply-To: <87egagt57g.fsf@jossystem.se> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Fri, 08 Apr 2016 13:21:44 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:116226 Archived-At: --089e0112c0228764a7052ffc0744 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=C3=B6ssman 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.1170200= 0 > System Description: Ubuntu 15.10 > > Configured using: > 'configure --with-x-toolkit=3Dgtk3 --with-file-notification=3Dinotify > --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 > > --=20 Thomas Fr=C3=B6ssman http://t.jossystem.se --089e0112c0228764a7052ffc0744 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
doh, I mixed up the mark/region functions a bit while test= ing.. Maybe it's not a bug then. I will continue to investigate later.<= /div>

On Fri, Apr = 8, 2016 at 6:50 PM, Thomas Fr=C3=B6ssman <thomasf@jossystem.se><= /span> 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.=C2=A0 If i use the init.el belo= w
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 ()
=C2=A0 (message "AM"))
(defun DM ()
=C2=A0 (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)
=C2=A0of 2016-04-08 built on transwhale
Repository revision: 7ad1d075b940f276adaf3b6bb0c024079c403f80
Windowing system distributor 'The X.Org Foundation', version 11.0.1= 1702000
System Description:=C2=A0 =C2=A0 =C2=A0Ubuntu 15.10

Configured using:
=C2=A0'configure --with-x-toolkit=3Dgtk3 --with-file-notification=3Dino= tify
=C2=A0--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:
=C2=A0 value of $LC_COLLATE: sv_SE.utf8
=C2=A0 value of $LC_CTYPE: sv_SE.utf8
=C2=A0 value of $LC_MESSAGES: en_US.utf8
=C2=A0 value of $LC_MONETARY: sv_SE.utf8
=C2=A0 value of $LC_NUMERIC: sv_SE.utf8
=C2=A0 value of $LC_TIME: sv_SE.utf8
=C2=A0 value of $LANG: en_US.utf8
=C2=A0 locale-coding-system: utf-8




--
Thomas Fr=C3=B6ssman
--089e0112c0228764a7052ffc0744--