From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Question regarding COLUMNS setting...
Date: Thu, 30 Dec 2004 12:10:59 -0700 [thread overview]
Message-ID: <33j269F41bh32U1@individual.net> (raw)
In-Reply-To: <mailman.10091.1104430284.27204.help-gnu-emacs@gnu.org>
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
next parent reply other threads:[~2004-12-30 19:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.10091.1104430284.27204.help-gnu-emacs@gnu.org>
2004-12-30 19:10 ` Kevin Rodgers [this message]
2004-12-30 17:59 Question regarding COLUMNS setting Larry D. Weiner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=33j269F41bh32U1@individual.net \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.