From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: emacs -nw conflicts with (set-foreground-color "xxx") Date: Tue, 9 Oct 2007 11:09:57 +0200 Message-ID: <2BB8C099-B10F-4663-90EB-38DBB65E5F3C@Web.DE> References: <1191867040.227702.174990@57g2000hsv.googlegroups.com> <1191904073.568407.236850@g4g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1191921178 20082 80.91.229.12 (9 Oct 2007 09:12:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Oct 2007 09:12:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: sigma.sullivan@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 09 11:12:56 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IfB96-0005OT-3G for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Oct 2007 11:12:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfB90-0000pH-E0 for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Oct 2007 05:12:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfB8C-0000Su-4f for help-gnu-emacs@gnu.org; Tue, 09 Oct 2007 05:12:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfB8B-0000S7-6q for help-gnu-emacs@gnu.org; Tue, 09 Oct 2007 05:11:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfB6H-0008LZ-P3 for help-gnu-emacs@gnu.org; Tue, 09 Oct 2007 05:10:01 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IfB6H-0000GP-A7 for help-gnu-emacs@gnu.org; Tue, 09 Oct 2007 05:10:01 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate01.web.de (Postfix) with ESMTP id 38989A550FA6; Tue, 9 Oct 2007 11:10:00 +0200 (CEST) Original-Received: from [195.4.205.177] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #197) id 1IfB6F-0007j9-00; Tue, 09 Oct 2007 11:10:00 +0200 In-Reply-To: <1191904073.568407.236850@g4g2000hsf.googlegroups.com> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX19W31Zw8EH6ycAYdQ67LdOqfe8Z0ST1+GcTrpBl OV7YE6/zkGvhLnBT8WTikIEx+xDAx9eROsyhpzIVk65lXG1wVW kdCzYd5ivdBCpnhHB/5A== X-Detected-Kernel: Linux 2.4-2.6 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: news.gmane.org gmane.emacs.help:48250 Archived-At: Am 09.10.2007 um 06:27 schrieb sigma.sullivan: > Does this make any sense? How can I get rid of the color > modification? I don't know ... One thing that I can imagine being the cause is, =20 that all these extra colours in your console application come from =20 the X server. When GNU Emacs or some other ncurses based programme =20 runs in this terminal emulation, it has no access to X11 and is =20 restricted to the use of ANSI defined colours ("ESC [ 3 7 m ESC [ 4 0 =20= m" or such codes). It might be possible that an extended "termcap =20 entry" describes capabilities to access much more colours, but then =20 this entry's name would be needed to be defined as the environment =20 variable TERM. An auxiliary environment variable TERMCAP or TERMPATH =20 might point to that powerful entry. Please check what your console application really offers "simple" =20 ncurses based non-graphic or alpha-numeric programmes! I'd make tests with GNU Emacs launched with -Q, i.e. to get an Emacs =20 running that has none of your system's or your own customisation =20 loaded. On the command line you can try -fg and -bg to set foreground =20= or background colour, you can also make GNU Emacs load an ELisp file =20 with the two simple statements, or you can make it to execute the =20 same statements on the command line. If the colours are still different from those that list-colors-=20 display shows, than you've probably found something like a bug and =20 should report it via Help menu -> Send Bug Report... Then describe =20 the original cause and what you've did and found when testing GNU =20 Emacs launched with -Q. You can start the bug report when still in =20 emacs -Q ... (Personally I don't see any reason why GNU Emacs, when running =20 without windows inside a terminal emulation, should use other colours =20= then those I've chosen for the host, i.e. the terminal emulation. Its =20= colours are already chosen for ergonomic reasons and personal =20 preferences. Nevertheless, I had problems that the default colours =20 and faces from font-lock were far away from readable. For this =20 purpose I positioned the cursor in some major-mode in such an =20 unreadable text and typed C-u C-x =3D. In another window this text was =20= described =96 and also its face was mentioned, offering a direct way to =20= the customisation interface. This way I re-customised some colours =20 and saved them in a file that gets loaded when GNU Emacs is running =20 with window-system "nil." To prepare this work just remove this =20 original section from your user init file, ~/.emacs for example, =20 starting with (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be = careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. and set right whatever you think needs correction. Then save your new =20= customisation and put the section in another file. Load your =20 customisation via, for example (setq custom-file (format "~/.emacs-Abrichtung-%d.el" ETyp)) (load custom-file) (load (format "~/.emacs_%s" mWS)) where ETyp corresponds to something like emacs-major-version [I have =20 a few Emacsen] and mWS corresponds to the window-system in which it =20 runs.) -- Greetings ~ O Pete ~~_\\_/% ~ O o