From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: How do I tell when the current buffer is the minibuffer? Date: Tue, 08 Mar 2016 00:00:46 -0500 Message-ID: References: <20160305210248.GA26757@acm.fritz.box> <87lh5w37jq.fsf@linux-m68k.org> <20160305221914.GB26757@acm.fritz.box> <87h9gk35ww.fsf@linux-m68k.org> <20160305225126.GC26757@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1457413843 16775 80.91.229.3 (8 Mar 2016 05:10:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Mar 2016 05:10:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 08 06:10:37 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 1ad9um-0007GG-JC for ged-emacs-devel@m.gmane.org; Tue, 08 Mar 2016 06:10:36 +0100 Original-Received: from localhost ([::1]:60369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ad9ul-00030d-TR for ged-emacs-devel@m.gmane.org; Tue, 08 Mar 2016 00:10:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ad9uQ-00030K-N2 for emacs-devel@gnu.org; Tue, 08 Mar 2016 00:10:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ad9uN-0000RJ-HP for emacs-devel@gnu.org; Tue, 08 Mar 2016 00:10:14 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:34186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ad9uN-0000RF-B9 for emacs-devel@gnu.org; Tue, 08 Mar 2016 00:10:11 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ad9uH-0006tT-8d for emacs-devel@gnu.org; Tue, 08 Mar 2016 06:10:05 +0100 Original-Received: from 157.52.15.125 ([157.52.15.125]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Mar 2016 06:10:05 +0100 Original-Received: from monnier by 157.52.15.125 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Mar 2016 06:10:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 10 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 157.52.15.125 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:uH50ekeTfriMHMSjbR9jw0yIEtA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:201127 Archived-At: > Until a `setq' (or the like) is done on the variable for a particular > buffer, C code reading/writing from Vcomment_depth_hwm reads and writes > the same piece of RAM that all other buffers do. If/when you write to the variable and intend it to be a buffer-local change, you need to use Fset or Fmake_local_variable rather than just using a C-level assignment. Stefan