From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Question regarding COLUMNS setting... Date: Thu, 30 Dec 2004 12:10:59 -0700 Message-ID: <33j269F41bh32U1@individual.net> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1104434045 31403 80.91.229.6 (30 Dec 2004 19:14:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Dec 2004 19:14:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 30 20:13:58 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ck5kC-0007AP-00 for ; Thu, 30 Dec 2004 20:13:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Ck5vA-0006Ff-EY for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Dec 2004 14:25:16 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-X-Trace: individual.net /uljjS5tJ0914ghjQ9hW/wTZW+TszzUgEOlq2zYJQ0of4wWKs= User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:127603 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:23063 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23063 Larry D. Weiner wrote: > I have just built emacs 21.3 on HP-UX. When I try to > do a compile from various frames, I find that the > compilation mode has set the environment variable > COLUMNS, which the compiler then uses to format it's > output. The COLUMNS is set from the frame that I issue > the compile-command. However, I have compilation set > in my special-display-buffer-names variable, so the > column-width is completely irrelevant for any other > frame. The upshot is that this interferes with the > interpretation of compile errors. Is there a way to > suppress COLUMNS from being set? Heres' where COLUMNS is set by compile-internal in compile.el: (let* ((process-environment (append (if (and (boundp 'system-uses-terminfo) system-uses-terminfo) (list "TERM=dumb" "TERMCAP=" (format "COLUMNS=%d" (window-width))) (list "TERM=emacs" (format "TERMCAP=emacs:co#%d:tc=unknown:" (window-width)))) ;; Set the EMACS variable, but ;; don't override users' setting of $EMACS. (if (getenv "EMACS") process-environment (cons "EMACS=t" process-environment)))) (proc (start-process-shell-command (downcase mode-name) outbuf command))) So you could try something like (defadvice compile-internal (around suppress-columns activate) (let ((system-uses-terminfo nil)) ad-do-it)) but then the TERMCAP environment variable would include the erroneous number -- but perhaps your compiler will ignore that. -- Kevin Rodgers