Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Jesper Harder <harder@myrealbox.com>
Subject: Re: self insert tab in message body
Date: Thu, 10 Oct 2002 18:54:32 +0200	[thread overview]
Message-ID: <m34rbus08n.fsf@defun.localdomain> (raw)
In-Reply-To: <x7wuortvvu.fsf@mail.sysarch.com>

Uri Guttman <uri@stemsystems.com> writes:

>>>>>> "JH" == Jesper Harder <harder@myrealbox.com> writes:
>
>   JH> Uri Guttman <uri@stemsystems.com> writes:
>   >> i like to insert hard tabs and now in the message body i get this
>   >> error:
>
>   JH> A work-around is to define your key-binding like this:
>
>   JH> (define-key text-mode-map "\t" 
>   JH>   (lambda (&optional n)
>   JH>     (interactive "p")
>   JH>     (self-insert-command (if n n 1))))
>
> when i get a fresh *mail* buffer it fails as before. i go to .gnus,
> eval it and then it works fine. so some how it it doesn't know how to
> find the text-mode-map? or should i shut down emacs and restart and
> see if that works?

You should put the code snippet in your .emacs file *instead* of the
definition you have now.  Then restart Emacs and see if works.


  reply	other threads:[~2002-10-10 16:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-07 18:41 Uri Guttman
     [not found] ` <m3elb1rlf9.fsf@defun.localdomain>
2002-10-09 16:33   ` Uri Guttman
2002-10-10 16:54     ` Jesper Harder [this message]
2002-10-14 16:52       ` Uri Guttman

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=m34rbus08n.fsf@defun.localdomain \
    --to=harder@myrealbox.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).