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: SV: Post script printing from emacs Date: Fri, 4 Jan 2008 16:04:04 +0100 Message-ID: <819DA1E5-C41E-47DD-BE47-ADE8C3F89115@Web.DE> References: <10914157.2347121199106997805.JavaMail.adm-moff@moffice3.nsc.no> <13353527.1670351199343550657.JavaMail.adm-moff@moffice8.nsc.no> <9D74C25E-D939-4AAE-9410-4DF75B3CA97F@Web.DE> <27135590.2493421199450567640.JavaMail.adm-moff@moffice5.nsc.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199459075 30403 80.91.229.12 (4 Jan 2008 15:04:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jan 2008 15:04:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Thor Nordstrand Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 04 16:04:54 2008 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 1JAo6N-0008TM-3E for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Jan 2008 16:04:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAo60-0006IC-Ls for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Jan 2008 10:04:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JAo5i-0006GC-DX for help-gnu-emacs@gnu.org; Fri, 04 Jan 2008 10:04:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JAo5f-0006Cc-RM for help-gnu-emacs@gnu.org; Fri, 04 Jan 2008 10:04:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAo5f-0006CS-OG for help-gnu-emacs@gnu.org; Fri, 04 Jan 2008 10:04:07 -0500 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JAo5f-0001CX-5d for help-gnu-emacs@gnu.org; Fri, 04 Jan 2008 10:04:07 -0500 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate03.web.de (Postfix) with ESMTP id 79E40C20EB11; Fri, 4 Jan 2008 16:04:06 +0100 (CET) Original-Received: from [195.4.209.93] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #208) id 1JAo5e-0004DB-00; Fri, 04 Jan 2008 16:04:06 +0100 In-Reply-To: <27135590.2493421199450567640.JavaMail.adm-moff@moffice5.nsc.no> X-Priority: 3 (Normal) X-Mailer: Apple Mail (2.753) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX18WMg3ZIsv9llHNUpu6Y2q2isXRN3HBPd/DNQUY 9ECOUrdDXoAF5+nwgrzXr6hpRIGMkoa9Zo6RNmy0cBWBvD8ZVn c8NYLSBtXF+5bPJkOdJQ== X-detected-kernel: by monty-python.gnu.org: 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:50493 Archived-At: Am 04.01.2008 um 13:42 schrieb Thor Nordstrand: > Do you know how to override these settings from my .emacs file? There are two ways: either (require 'vhdl-mode) (when the ELisp file has a provide statement) to make GNU Emacs aware of this mode, its functions, and variables and then make your corrective settings, or use a hook. Like in (add-hook 'vhdl-mode-hook (lambda () (setq ...) (message "vhdl-mode-hook applied") ) which will be executed whenever vhdl-mode is being initiated for a buffer. Take care that no recursion occurs. A third method can be to edit loadup.el or its local variant to load vhdl-mode.el when GNU Emacs is created. Then the require statement in ~/.emacs is not needed. > Should I go into my vhdl-mode.elc to make the changes, changes in > the vhdl-mode.el file does not seem to have any effect? It makes no sense to change the ELC files: it's derived from the EL file by byte-compiling it. And it's rather nasty binary. You have functions like byte-compile-file or batch-byte-compile, I think Lisp- mode allows to byte-compile the buffer you're just working in, and finally in dired-mode you can simply type B, dired-do-byte-compile. So you can edit vhdl-mode.el and just need to byte-compile it afterwards, after saving it. And from this it makes no sense to attach an ELC file ... -- Greetings Pete People say that if you play Microsoft CD's backwards, you hear satanic things, but that's nothing, because if you play them forwards, they install Windows.