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: How do I tell when the current buffer is the minibuffer? Date: Sat, 05 Mar 2016 13:39:55 -0800 Message-ID: References: <20160305210248.GA26757@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1457214028 8395 80.91.229.3 (5 Mar 2016 21:40:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2016 21:40:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 05 22:40:22 2016 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 1acJvy-0001AG-GI for ged-emacs-devel@m.gmane.org; Sat, 05 Mar 2016 22:40:22 +0100 Original-Received: from localhost ([::1]:48135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acJvx-0006SI-Qp for ged-emacs-devel@m.gmane.org; Sat, 05 Mar 2016 16:40:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acJvi-0006Qq-En for emacs-devel@gnu.org; Sat, 05 Mar 2016 16:40:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acJve-0005ej-Df for emacs-devel@gnu.org; Sat, 05 Mar 2016 16:40:06 -0500 Original-Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]:34984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acJve-0005eO-6O for emacs-devel@gnu.org; Sat, 05 Mar 2016 16:40:02 -0500 Original-Received: by mail-pa0-x22f.google.com with SMTP id bj10so55441200pad.2 for ; Sat, 05 Mar 2016 13:39:59 -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; bh=02Boj5wq+kHljLffYAk3Cp6r1VcaMexNG8Si0Pb0KTI=; b=DF+idFssMUYGKrkAPFADelUlALSMCH6UQzGrZG9MChSyPj6Qr9t6HXAVX5pEwCnkE9 iTu636mAZK98WEZHfAoI2gRj2hnjU4+0mjmR+84wRKefmqgaT6yHfIV6y7xK4BCKgmMG nbiXy4X81lWgg2p9gXr86lnI8d8KM0IGnMrQE0DAf/GNGUGaDNX3j+amPXyitKv3kPPD Kqf3ICsGWcs7hP+i2g5RaJdxjGZv0eMSJmULc2ybxxIwEDMXJozbq92qdV08P+6oUIRl xN0d40D08vbnSIcZx/7zvSXckYCYkryrfNS7MIqj07VxQOjzE1jdNGTITSBZzhx6vVbi C2kA== 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; bh=02Boj5wq+kHljLffYAk3Cp6r1VcaMexNG8Si0Pb0KTI=; b=XMRiVmKu4zs7lbMz+nI2o52uzW0nHrpr8gNg82LtuGwHq79eYTuI3zMeDbBAfOogP1 Sttt5q0T26bpCB71g0idEsvk0wF5kNtgYFMUARyxjknb4LFrMFGV/Lh1AZyAmQp/Sqb4 4sWqouut32tbbwmakAZXj9CVUlQGved9PjYJYuq/Bk1pGD4N6JdG2AW559Q0f3Irrd3S c0Z5+okHC9Ud7+m4A24+PYk4xgIustDpaUOEbaMX5IGkpbXElysk0rsKEF4OfX8fo8AX 9X/vUTd48hYo1+AhhdX7dp4ZYV1pF8U/S5ohc0gQQkwgHMY2gVlRD2h06eFdFpFlA9PW af4A== X-Gm-Message-State: AD7BkJKCeGbhlJIEFZ+o38IpELVOhGMncvV005X8SawwZCduxUUlOZUNtqE0v0kdhY/qKquH X-Received: by 10.66.185.227 with SMTP id ff3mr22489578pac.117.1457213999226; Sat, 05 Mar 2016 13:39:59 -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 f12sm14348842pfd.87.2016.03.05.13.39.55 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sat, 05 Mar 2016 13:39:56 -0800 (PST) In-Reply-To: <20160305210248.GA26757@acm.fritz.box> (Alan Mackenzie's message of "Sat, 5 Mar 2016 21:02:49 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (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::22f 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:200974 Archived-At: Alan Mackenzie writes: minibuffer-window-active-p perhaps > Hello, Emacs. > > My problem is as stated in the Subject: line. > > Part of my program is being called from `signal_after_change' after > activity in the minibuffer. However, in that program the buffer local > variables for the main buffer (not the minibuffer) are still in scope. > > I need some way of distinguishing that we're in the minibuffer so as to > avoid corrupting the buffer local variables of the selected buffer. > > I've tried "Fminibufferp (Qnil);", but this seems just to return nil, > even when the current buffer IS the minibuffer. > > I've even tried reading the fine manual without finding anything useful. > > Would somebody please tell me what I'm missing. > > Thanks! --