From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: raman Newsgroups: gmane.emacs.devel Subject: Re: HowTo: Run a hook when a buffer becomes "current" Date: Sat, 19 Dec 2015 19:07:58 -0800 Message-ID: References: <56758EDA.30003@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1450580909 8854 80.91.229.3 (20 Dec 2015 03:08:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Dec 2015 03:08:29 +0000 (UTC) Cc: Richard Stallman , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 20 04:08:25 2015 Return-path: Envelope-to: ged-emacs-devel@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 1aAUMB-0006Vf-8j for ged-emacs-devel@m.gmane.org; Sun, 20 Dec 2015 04:08:23 +0100 Original-Received: from localhost ([::1]:39457 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAUMA-0005tf-Bp for ged-emacs-devel@m.gmane.org; Sat, 19 Dec 2015 22:08:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAULw-0005tJ-AA for emacs-devel@gnu.org; Sat, 19 Dec 2015 22:08:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aAULr-0005F4-CB for emacs-devel@gnu.org; Sat, 19 Dec 2015 22:08:08 -0500 Original-Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:35601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAULr-0005Et-6K for emacs-devel@gnu.org; Sat, 19 Dec 2015 22:08:03 -0500 Original-Received: by mail-pa0-x231.google.com with SMTP id jx14so52162802pad.2 for ; Sat, 19 Dec 2015 19:08:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=QiKtjxZwTR7TysRcvEhfezGfPpyo9cScsrxPOLMrnNc=; b=B2GrgI0bFbbPtO5O+2Cx1NjX5REoYQ2MZHeol690QQGJ/CvHSKtqEjzr3wP/HaQIug hWV7wG+cICBiVwtHxqkBFKpyYMnAaMarZkqTJ+GEqZIj7iGrzdT55mWZd/ZV1lLpGcd9 v7f98ZK8SsJ1KWh0ZET+hok5Eh0wCiFxhtnUUoizIrQm4FjOCgYBRxDbB2zMLVMRCF5q Jk5Tzmp2jGq6aeyeg2kmK4M+dfa4m4y8t4npwYBcPAx5TYiuNw3+w1PpuGvtcQuRYX4X Z+SsdKaS0/rfTNr4NnxBM72ea6nLIWd7xZ1Boemb7SyM+V56lpvVy0CDxHpxCsIf4h+O xwuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=QiKtjxZwTR7TysRcvEhfezGfPpyo9cScsrxPOLMrnNc=; b=JPRz2+U2ubKM/FCEplO6aJNr3PZUnVW4kphHHcq0Oug/RHRp6vINt7JdNL6e+YdPa0 f7n3bNRpjFfLefiHizia2KXTFFeLdvreycAgqrmqjuYQNR/l4x2RTFKUw7VZg8NJgL20 scgi4PdOwa1nZdneDPREifUt2vDZT7YASNR8XL0oAc6pWLefwPhN1fk6rb52BboDdOUg JoZBWVLvJU8XfHN3JACI+LZY8rejyzgdv/YInn1B3faogDQknPBsXmCS8iLFmcjhQqeP P4shGt9p6xnpEX7sR9kC+4JCOAAJ7FXLAS7oMAmS5069DOBdom301hyslC4NH3Q3ntKv RsPg== X-Gm-Message-State: ALoCoQkIKPGYDfEfg/E5pKQE4V73TU/79Q5+PYQIvsMuA1Bm08UJ7dzlpCpXnQ1pZexhegmKtjExmz5X7aVKWNXZpMspDBp8cA== X-Received: by 10.67.3.230 with SMTP id bz6mr17173007pad.118.1450580882403; Sat, 19 Dec 2015 19:08:02 -0800 (PST) Original-Received: from raman-glaptop2 (c-73-170-121-60.hsd1.ca.comcast.net. [73.170.121.60]) by smtp.gmail.com with ESMTPSA id b26sm26303164pfd.6.2015.12.19.19.07.59 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sat, 19 Dec 2015 19:07:59 -0800 (PST) In-Reply-To: <56758EDA.30003@yandex.ru> (Dmitry Gutov's message of "Sat, 19 Dec 2015 19:07:38 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196539 Archived-At: Dmitry Gutov writes: > >> Which would be far harder to debug :-) > > Not really. Timers are pretty easy to debug. > So are hooks . And for that matter so is advice -- given that you can easily activate, deactivate, enable or disable advice forms.> On 12/19/2015 06:43 PM, raman wrote: --