From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: haml plus kill-rectangle hangs emacs
Date: Tue, 06 Apr 2010 00:17:36 -0600 [thread overview]
Message-ID: <hpejlp$7mp$1@dough.gmane.org> (raw)
In-Reply-To: <o2kd62ac5f31004021212j67f608a1s51c1296ac6cd7107@mail.gmail.com>
Audrey Lee wrote:
> Hello emacs people.
>
> I have bumped into an issue with emacs when I try to kill-rectangle
> inside a file which is in haml-mode.
>
> I see 2 symptoms:
>
> 1. Emacs "hangs"
> 2. The emacs process start hogging 99% of the CPU on my Mac.
>
> Here is info about my emacs:
>
> GNU Emacs 22.3.1 (i386-apple-darwin9.6.0, Carbon Version 1.6.0)
> of 2009-01-02 on seijiz.local
>
> Question 1:
> - In my .emacs, What might be some simple syntax I can use to
> disable kill-rectangle while I am in haml-mode ?
Commands can only be disabled globally, via the disabled property.
But you can disable a keybinding locally, via local-unset-key,
local-set-key, or define-key. E.g.
(add-hook 'html-mode-hook
(lambda ()
(local-set-key (where-is-internal 'kill-rectangle
(current-local-map) t)
'undefined)))
> Question 2:
> - In my .emacs, What might be some simple syntax I can use to
> connect a key to a function, but only for haml-mode, not globally.
(add-hook 'html-mode-hook
(lambda ()
(local-set-key SOME-KEY SOME-COMMAND)))
> Question 3:
> - Does emacs have some kind of debugger I can use to tell me what
> files it is reading when I execute emacs commands?
Emacs has a debugger you can use all the time. This is probably
too intrusive, but you get the idea:
(debug-on-entry 'load)
> These are the only emacs questions I can think of today.
Tomorrow is another day. :-)
--
Kevin Rodgers
Denver, Colorado, USA
prev parent reply other threads:[~2010-04-06 6:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-02 19:12 haml plus kill-rectangle hangs emacs Audrey Lee
2010-04-02 22:20 ` Peter Dyballa
2010-04-06 6:17 ` Kevin Rodgers [this message]
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='hpejlp$7mp$1@dough.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.