[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Emacs - formatting and dating files.



"Stephen J. Turnbull" wrote:
> 
> >>>>> "Barrie" == Barrie Bremner <TheEnglishman [at] ecosse.net> writes:
> 
>     Barrie> If it is a .tcl file, tcl mode is started by Emacs, and
>     Barrie> the response is t.
> 
> OK.  When you start up a fresh Emacs, what does C-h v "tcl-mode-map"
> RET tell you?  If it actually gives information, just comment out
> (semicolon-to-end-of-line comments, you've probably figured that out
> by now) the "(require 'tcl)" line, and try again.

 Doesn't help - error message.

> If it says "no such variable" or similar, visit a .tcl file, and see
> if M-: "(featurep 'tcl-mode)" RET says t.  If so, change the "(require
> 'tcl)" line to "(require 'tcl-mode)" and try again.
> If that doesn't work, what does C-h f "tcl-mode" RET tell you about
> where the `tcl-mode' function is loaded from?

C-h f "tcl-mode" gives:

tcl-mode is an interactive compiled Lisp function in `tcl-mode'.
(tcl-mode)

Major mode for editing tcl scripts.

[lists keybindings]

So, the code you gave me now reads:

(if t                   ; change `t' to `nil' to turn this off
    (progn
     (require 'tcl-mode)
     (define-key tcl-mode-map [(tab)]       'self-insert-command)
     (define-key tcl-mode-map [(shift tab)] 'tcl-indent-command)))


However, upon opening a .tcl file, I get the following error:

Error in init file: Wrong type argument: keymapp, nil

[The double pp on keymapp is as it reads - lisp predictate?]

> >>>>> "Barrie" == Barrie Bremner <TheEnglishman [at] ecosse.net> writes:
> 
>     Barrie>  Oh, and one last thing... :-)
> 
>     Barrie>  How do I get comments to wrap correctly in tcl mode?
> 
>     Barrie> auto-fill-mode wraps most things...
> 
>     Barrie> Can I limit it to lines that start with '#' - i.e. the
>     Barrie> comments?
> 
> This is that "mixed-mode" thing I was talking about.  It's not going
> to work very well.  First, try M-x "filladapt-mode" RET.

No joy. I'll take a trip over to wonderworks later and bit up the
package, an figure out how to install it :-)

Cheers.

Baz.

--
Barrie J. Bremner

TheEnglishman [at] ecosse.net | OpenPGP public key ID: 5164F553
	    http://www.geocities.com/thefatenglishman
	    [Contact information available at website]

   "Linux? Is that some kind of MacOS?"
      -- BT technical support
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.