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: Thu, 17 Dec 2015 08:15:58 -0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1450368977 2074 80.91.229.3 (17 Dec 2015 16:16:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Dec 2015 16:16:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 17 17:16:12 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 1a9bDw-0007Vb-CI for ged-emacs-devel@m.gmane.org; Thu, 17 Dec 2015 17:16:12 +0100 Original-Received: from localhost ([::1]:54543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9bDv-0008Gj-Li for ged-emacs-devel@m.gmane.org; Thu, 17 Dec 2015 11:16:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9bDr-0008EL-A9 for emacs-devel@gnu.org; Thu, 17 Dec 2015 11:16:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9bDl-00073e-Qm for emacs-devel@gnu.org; Thu, 17 Dec 2015 11:16:07 -0500 Original-Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]:36559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9bDl-00073A-K3 for emacs-devel@gnu.org; Thu, 17 Dec 2015 11:16:01 -0500 Original-Received: by mail-pf0-x232.google.com with SMTP id o64so33177293pfb.3 for ; Thu, 17 Dec 2015 08:16:01 -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=frcitKHr1czzd47kFJcSQXD0ONaYIPZk8C6d32LCJPQ=; b=haSE7HvNSX+WZckFhlnJh9C2kBEVP4tl4k6xiWkdRq3lNnYV+BYCNlmJ1qqyjMdpaL Hyzy8s7wuKz6qdekko/DBlCv9FfgXQhm9pQiA+Aphn6slQXpS+k5VzZ7m8spGYEU9i3y VPBbStKuehQ/UZeIrfjq8UA3Zx6ORpwOBrSMNtkPokT00yo9VVYpVC+A5UEMISaVjDSg vbXAqRtD4vjWpxKapBpdf+j+jZ8nbQvF42iKc4JblXITrjrZ2EDj1sbsyKpyT0tdMEBm sxQDuLecCihPf79O4/TF3ybsHZY6Sxm09nsDoj05jhrmRHaE/iyqpNyff/rarhuHUCtg DV4Q== 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=frcitKHr1czzd47kFJcSQXD0ONaYIPZk8C6d32LCJPQ=; b=EFiWI2Osg9TR5K+Uy9nhrBhMNYGSum+2IIISGUsPJUh3KwDvrPhmDfChtcuyCrMR3Y KFiZPw/WvleDIifzppDjMIoFQtskQ1yKMroeRnd7ODZds0TopWaPVcjCNuhxKhMbF5pv ncvHKmgmtM6Z6wkkQ52YLS0wUo6/+iEOtdVJeKNLTBogGbaBYkukaIV3ZjDXG2ahdF7p 0RVUcPeDSt98ZvFqYPlzRL8Z+Bt9MBQlUB5DOKdj5WXv5PiWBpGH9lWrHnNk6Nun56aa TDw8lH7o6qOq0B5n2rH8QibSE8p0mLpW3kHYsEHLYMqdjVh033usR2bznp7reEAz+l6Q qbhQ== X-Gm-Message-State: ALoCoQnTU2b3oj00iiCRY1nW45uCoyUpW+gZWkjDtSfASZrmgQvW/9ZXt0l9KG3cQEzfO7f+wKu31iKLxqpxn1c+mnaekjniNA== X-Received: by 10.98.10.217 with SMTP id 86mr15321943pfk.37.1450368960758; Thu, 17 Dec 2015 08:16:00 -0800 (PST) Original-Received: from raman-glaptop2 ([207.198.105.24]) by smtp.gmail.com with ESMTPSA id yl1sm16771362pac.35.2015.12.17.08.15.59 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 17 Dec 2015 08:15:59 -0800 (PST) In-Reply-To: (Richard Stallman's message of "Wed, 16 Dec 2015 23:58:37 -0500") 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:c00::232 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:196424 Archived-At: I specifically want to run a function when a function becomes current and interactable by the user -- agreed that I dont want to run code in the case of set-buffer. For now, an after advice on select-window does nicely -- a select-window-hook would obviate the need for that advice --