From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joe Buehler Newsgroups: gmane.emacs.help Subject: compile mode buffer name customization Date: Wed, 11 Nov 2020 11:23:37 -0500 Message-ID: <5FAC1009.20306@cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6689"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Thunderbird 1.5.0.12 (X11/20120201) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 11 18:35:43 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kcu22-0001c6-22 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 11 Nov 2020 18:35:42 +0100 Original-Received: from localhost ([::1]:49792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kcu21-0004Cd-4q for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 11 Nov 2020 12:35:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcsv0-0007m7-Ro for help-gnu-emacs@gnu.org; Wed, 11 Nov 2020 11:24:22 -0500 Original-Received: from omta016.useast.a.cloudfilter.net ([34.195.253.207]:41144) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcsuy-0001Tm-LH for help-gnu-emacs@gnu.org; Wed, 11 Nov 2020 11:24:22 -0500 Original-Received: from cxr.smtp.a.cloudfilter.net ([10.0.17.147]) by cmsmtp with ESMTP id cr1KkTUjOUPI9csuPk03O5; Wed, 11 Nov 2020 16:23:45 +0000 Original-Received: from thunder.sweets ([68.100.138.62]) by cmsmtp with ESMTPSA id csuNkMH2iu6SncsuOkYHqU; Wed, 11 Nov 2020 16:23:45 +0000 Authentication-Results: cox.net; auth=pass (LOGIN) smtp.auth=jbuehler@cox.net X-Authority-Analysis: v=2.4 cv=VrXmv86n c=1 sm=1 tr=0 ts=5fac1011 a=3mkzfl4ircflX6G+lDqBYw==:117 a=3mkzfl4ircflX6G+lDqBYw==:17 a=8nJEP1OIZ-IA:10 a=nNwsprhYR40A:10 a=L9IQYiQeaDIDrY6aaZgA:9 a=wPNLvfGTeEIA:10 Original-Received: by thunder.sweets (Postfix, from userid 116) id 5B4BD11AF2; Wed, 11 Nov 2020 11:23:39 -0500 (EST) Original-Received: from [10.10.10.15] (thunder.sweets [10.10.10.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by thunder.sweets (Postfix) with ESMTPS id 04F6C11AEB for ; Wed, 11 Nov 2020 11:23:38 -0500 (EST) X-CMAE-Envelope: MS4xfNVdX9U7GQhlBh/hFW/XIiMLu/TkOGlDgKZ+Yx7pVCURY6Z+PNjZi5WE0UGo/wwgb3wmZpxJG8Z6CQ+mP41slM8T6t9Sn8NPJKR+vnI6/+q5JUYPj5GT USArm3TuXqmhAxrcwGJalHqHtVz/XrOLLT2LFz/aMAfp97IAK0cY0hIHAM044kTmGLZgKGbPOBEN9w== Received-SPF: pass client-ip=34.195.253.207; envelope-from=aspam@cox.net; helo=omta016.useast.a.cloudfilter.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/11 11:23:46 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 11 Nov 2020 12:35:21 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125235 Archived-At: I customized compile mode some time ago to add the command name (suitably sanitized) to the buffer name. That way I have a complete history of all the compiles I have run and their output. This stopped working at some point (haven't upgraded in a long time). I saw a note to the effect that emacs lisp switched to lexical scoping? I was using the "command" variable in my hook but it is no longer accessible apparently due to the scoping change? Any easy solutions here? Just having the mode name for the buffer name hook is a bit of a limitation. Joe Buehler