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, 08 Apr 2016 18:50:43 +0200 Message-ID: <87egagt57g.fsf@jossystem.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1460134513 11523 80.91.229.3 (8 Apr 2016 16:55:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Apr 2016 16:55:13 +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 18:55:12 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 1aoZgd-0000JC-Q0 for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Apr 2016 18:55:12 +0200 Original-Received: from localhost ([::1]:57280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoZgc-0000W2-Og for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Apr 2016 12:55:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoZgY-0000Rn-37 for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2016 12:55:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoZgU-0005TI-0C for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2016 12:55:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoZgT-0005TE-TH for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2016 12:55:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aoZgT-0002KX-Or for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2016 12:55:01 -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 16:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 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.14601344778923 (code B ref -1); Fri, 08 Apr 2016 16:55:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Apr 2016 16:54:37 +0000 Original-Received: from localhost ([127.0.0.1]:54843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoZg5-0002Jr-Ie for submit@debbugs.gnu.org; Fri, 08 Apr 2016 12:54:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoZci-0002Ek-SZ for submit@debbugs.gnu.org; Fri, 08 Apr 2016 12:51:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoZcc-0004GK-RE for submit@debbugs.gnu.org; Fri, 08 Apr 2016 12:51:03 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoZcc-0004GG-O5 for submit@debbugs.gnu.org; Fri, 08 Apr 2016 12:51:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoZcY-0004RF-Eg for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2016 12:51:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoZcU-0004F9-6j for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2016 12:50:58 -0400 Original-Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:34102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoZcT-0004Eu-Tb for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2016 12:50:54 -0400 Original-Received: by mail-lf0-x230.google.com with SMTP id j11so83900688lfb.1 for ; Fri, 08 Apr 2016 09:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jossystem-se.20150623.gappssmtp.com; s=20150623; h=user-agent:from:to:subject:date:message-id:mime-version; bh=OkBNkigQ2qXVXtHDiyRQagIChdkGV0a2BVro+1sJQxk=; b=f7fCTLkPOHkZ1bBDuliTKKjTIIT00R9C3u/a9a9oPVSyrol0W3rQoshuyvroN3lGZ0 WJSQrRhv8sOawq4WcKQVc8D6tV0fUomV92yAMef+fzbRkWYp9iD7ZHzzOlbmpOWfwNFz U3JnZa/yemjEeyLJjICVGFcy7Z374MoykLzxnVT7CjfdxlRGydzrazNTfUIVl+PPf+6a CdrgTH1Ccu/vtagswMSE01JDSw4RAsA8fCxVYFNwWAijivqeS4in1ofTSsG5W+/X2TCt HZPwXeFMHQNdTTFOuP2jxNulyQKM936xYLzatOJtKXB5e6zg+VhBN38NgkDa1SAxGJpU jq/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=OkBNkigQ2qXVXtHDiyRQagIChdkGV0a2BVro+1sJQxk=; b=LtIGpudUz3XYD4VCqbm6Qxoe6RMaqC1DaEeeQxsGQ1yISYtae6NcLRsttAuIpdIil3 MVgCNpWrsPVjk2ZMhBJEo4CxNJbXaJrfM2Oye2fO/2hJoQOMqD6poMl8IQSB5/ZyfKI1 oQCxNNBff/dDRnpQxN/jbLGampuiAap8RXRFPEkxzBrGXLigcJnju1K2z/5Umulyjxbt qxS1FkTDYZrVVkUVapCn7bPZQZdadwUINiBs8hMnDhI8AeT4AW/1MLYEyjDveekta2P7 4KF21vVo4emOYZL3gxrwwS1WRFl2V5juGvEh7hG8XfYPaYDhyYBmNKFV7awCNI70xCUs V2bQ== X-Gm-Message-State: AD7BkJL0mhrrUkXMFfGVwe/IGK4LUEy9xajcJcIz7rJeSXSnYoaloTrRAjlIxlYf34Dong== X-Received: by 10.25.16.103 with SMTP id f100mr3262504lfi.90.1460134252453; Fri, 08 Apr 2016 09:50:52 -0700 (PDT) Original-Received: from transwhale (c-d23de155.131-1-64736c11.cust.bredbandsbolaget.se. [85.225.61.210]) by smtp.gmail.com with ESMTPSA id m35sm2101046lfi.25.2016.04.08.09.50.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Apr 2016 09:50:51 -0700 (PDT) User-agent: mu4e 0.9.17; emacs 25.0.92.8 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 12:54:35 -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:116224 Archived-At: 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