From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kelly Dean Newsgroups: gmane.emacs.bugs Subject: bug#13027: Activating mark does not run mark activation hook Date: Thu, 29 Nov 2012 02:08:19 -0800 (PST) Message-ID: <1354183699.65442.YahooMailClassic@web141104.mail.bf1.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1354183765 29094 80.91.229.3 (29 Nov 2012 10:09:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2012 10:09:25 +0000 (UTC) To: 13027@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 29 11:09:36 2012 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 1Te13l-0004tY-Eq for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Nov 2012 11:09:33 +0100 Original-Received: from localhost ([::1]:54010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Te13a-0006Na-4R for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Nov 2012 05:09:22 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Te13O-0006MS-7x for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2012 05:09:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Te13I-0001FU-EC for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2012 05:09:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Te13I-0001FQ-7M for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2012 05:09:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Te15C-0002QW-Hf for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2012 05:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kelly Dean Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Nov 2012 10:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13027 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.13541838369291 (code B ref -1); Thu, 29 Nov 2012 10:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Nov 2012 10:10:36 +0000 Original-Received: from localhost ([127.0.0.1]:44567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Te14m-0002Pm-21 for submit@debbugs.gnu.org; Thu, 29 Nov 2012 05:10:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57723) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Te14k-0002Pd-0S for submit@debbugs.gnu.org; Thu, 29 Nov 2012 05:10:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Te12n-0001Af-RO for submit@debbugs.gnu.org; Thu, 29 Nov 2012 05:08:34 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:35340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Te12n-0001Ab-Ny for submit@debbugs.gnu.org; Thu, 29 Nov 2012 05:08:33 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Te12i-0006Kg-1e for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2012 05:08:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Te12a-00019B-Cr for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2012 05:08:27 -0500 Original-Received: from nm10.bullet.mail.bf1.yahoo.com ([98.139.212.169]:32469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Te12a-000194-6w for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2012 05:08:20 -0500 Original-Received: from [98.139.212.148] by nm10.bullet.mail.bf1.yahoo.com with NNFMP; 29 Nov 2012 10:08:19 -0000 Original-Received: from [98.139.212.236] by tm5.bullet.mail.bf1.yahoo.com with NNFMP; 29 Nov 2012 10:08:19 -0000 Original-Received: from [127.0.0.1] by omp1045.mail.bf1.yahoo.com with NNFMP; 29 Nov 2012 10:08:19 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 715458.99547.bm@omp1045.mail.bf1.yahoo.com Original-Received: (qmail 75347 invoked by uid 60001); 29 Nov 2012 10:08:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1354183699; bh=uuOZk7qVIKsy8lBsQfyn+GfbQpp8EZZhJdWosnNjwOY=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=6k6aJM1l2iH2pUN9Cjidp5yZ5M1ItorqX4UNdUN6czVdhgqJ3xPunXkXgrFHAz/kOgk6DiA7HaHWko2Gun/cCDDh3iNoquPFphugY2ytpzUKVxDgKoY2pJs73NMoPURHhan2yQtH1mUO5tfyCGsJchb+AfoQ0MlP2lZ5hpougGU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=pnHubHI2d1f0RuXXZAmKIK71v7tadoTJoRzsEotN76Gb+KAF4gShGQysg5mwvtiqgqEpr/VTqKs+NNyn5E05GJxboSElJ18DGkU6y3y6MCcWEOGmC71ajXjURcT2K3U7mruISyMVZP2RjWO5SE297m2iPHi10Hk5qCevoj48nm4=; X-YMail-OSG: .vxoeYYVM1lFn4IaRUvg1gChVjwJ6VVq.nHnqjN_qUcHCFv 8xC9NJaF22qAlhI7fFNwzXMfPC2MSsmEpEEhI8.DOHCYHFVecTaC4hSYz0cr F8oHtQpi8taf_E.XLoyw01e3cLUpVBxDGmu0RG6NqfNp29mqgUONSzHju4di SgEelP_OzIh2VXwtYcEnw9Bc7TV_y.9rqdKDxTjUeHiDxrcjTAR96nM4ZqeG u618xFMFO.UdvUi2MPbWKMrim3ROb0XHQwHs7m1IwoIO6Bkkqem2g4lwMMh9 fQGgR0fYzU784nHaVKc36ed1RIVOzO.9.tAhHurrX4QFzAzJm0g5ImqswqKp J7xjvqMgdH6sxzUs4MeelB1o8S7ASihMKKtlpYzfhqclbV2DSUvMhxeDY9Ay t7t.Kk7eLSR0ova2EMI81mQgibGPSR7ZrTEKF_P07aCP_JYwneQzMM1k- Original-Received: from [37.130.227.133] by web141104.mail.bf1.yahoo.com via HTTP; Thu, 29 Nov 2012 02:08:19 PST X-Rocket-MIMEInfo: 001.001, SW4gMjQuMiwgZnJvbSBlbWFjcyAtUQooYWRkLWhvb2sgJ2RlYWN0aXZhdGUtbWFyay1ob29rIChsYW1iZGEgKCkgKG1lc3NhZ2UgIkRlYWN0aXZhdGUgbWFyayBob29rIGNhbGxlZC4iKSkpCihhZGQtaG9vayAnYWN0aXZhdGUtbWFyay1ob29rIChsYW1iZGEgKCkgKG1lc3NhZ2UgIkFjdGl2YXRlIG1hcmsgaG9vayBjYWxsZWQuIikpKQpDLVNQQyBDLVNQQyBDLVNQQyBDLVNQQwpJbiAqTWVzc2FnZXMqIHlvdSBnZXQ6CgpNYXJrIHNldApBY3RpdmF0ZSBtYXJrIGhvb2sgY2FsbGVkLgpEZWFjdGl2YXRlIG1hcmsBMAEBAQE- X-Mailer: YahooMailClassic/15.0.8 YahooMailWebService/0.8.127.475 X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67582 Archived-At: In 24.2, from emacs -Q (add-hook 'deactivate-mark-hook (lambda () (message "Deactivate mark hook called."))) (add-hook 'activate-mark-hook (lambda () (message "Activate mark hook called."))) C-SPC C-SPC C-SPC C-SPC In *Messages* you get: Mark set Activate mark hook called. Deactivate mark hook called. Mark deactivated Mark activated Deactivate mark hook called. Mark deactivated Notice that the second "Activate mark hook called" is missing. simple.el has: (defun activate-mark () "Activate the mark." (when (mark t) (setq mark-active t) (unless transient-mark-mode (setq transient-mark-mode 'lambda)))) The bug is fixed by changing that to: (defun activate-mark () "Activate the mark." (when (mark t) (setq mark-active t) (run-hooks 'activate-mark-hook) (unless transient-mark-mode (setq transient-mark-mode 'lambda))))