unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* I can't redefine ";" !!!
@ 2003-03-17  8:37 Jay Dresser
  2003-03-18  5:53 ` Eli Zaretskii
  2003-03-18 17:06 ` Kevin Rodgers
  0 siblings, 2 replies; 3+ messages in thread
From: Jay Dresser @ 2003-03-17  8:37 UTC (permalink / raw)



This is blowing my mind.  I've never had a problem redefining keys
before.

(define-key asm-mode-map ";" 'self-insert-command)

I am trying to disable the bizarre behavior of ";" in assembler mode.
I just want it to insert a ";".  No matter what I do (global-map,
asm-mode-map, in mainline of .emacs, inside asm-mode-hook) it _always_
comes up defined as 'asm-comment, which is apparently set by going to
asm-mode.  I thought that the hook code was called after going into
the mode, but maybe it's before.  Anyway, is there any way to make
this work?  Thanks.

-- 
Jay Dresser / 
usenet
@
dresserfamily
.
org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: I can't redefine ";" !!!
  2003-03-17  8:37 I can't redefine ";" !!! Jay Dresser
@ 2003-03-18  5:53 ` Eli Zaretskii
  2003-03-18 17:06 ` Kevin Rodgers
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2003-03-18  5:53 UTC (permalink / raw)


> Newsgroups: gnu.emacs.help
> From: Jay Dresser <jay@altair4.dresserfamily.org>
> Date: Mon, 17 Mar 2003 08:37:23 GMT
> 
> (define-key asm-mode-map ";" 'self-insert-command)
> 
> I am trying to disable the bizarre behavior of ";" in assembler mode.
> I just want it to insert a ";".

Then type "C-q ;" whenever you want to insert a literal semi-colon.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: I can't redefine ";" !!!
  2003-03-17  8:37 I can't redefine ";" !!! Jay Dresser
  2003-03-18  5:53 ` Eli Zaretskii
@ 2003-03-18 17:06 ` Kevin Rodgers
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2003-03-18 17:06 UTC (permalink / raw)


Jay Dresser wrote:

> This is blowing my mind.  I've never had a problem redefining keys
> before.
> 
> (define-key asm-mode-map ";" 'self-insert-command)
> 
> I am trying to disable the bizarre behavior of ";" in assembler mode.
> I just want it to insert a ";".  No matter what I do (global-map,
> asm-mode-map, in mainline of .emacs, inside asm-mode-hook) it _always_
> comes up defined as 'asm-comment, which is apparently set by going to
> asm-mode.  I thought that the hook code was called after going into
> the mode, but maybe it's before.  Anyway, is there any way to make
> this work?  Thanks.

Read the source.  Search for asm-comment-char and asm-mode-set-comment-hook.

-- 
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;">Kevin Rodgers</a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-18 17:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-17  8:37 I can't redefine ";" !!! Jay Dresser
2003-03-18  5:53 ` Eli Zaretskii
2003-03-18 17:06 ` Kevin Rodgers

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 read-only IMAP folder(s) and NNTP newsgroup(s).