From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Douglas Lewan Newsgroups: gmane.emacs.help Subject: debugging a post-command-hook Date: Thu, 20 Jun 2002 14:16:06 -0400 Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C21886.8B96DF00" X-Trace: main.gmane.org 1024598032 22052 127.0.0.1 (20 Jun 2002 18:33:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Jun 2002 18:33:52 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17L6ki-0005jY-00 for ; Thu, 20 Jun 2002 20:33:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17L6jy-0005p1-00; Thu, 20 Jun 2002 14:33:06 -0400 Original-Received: from [66.33.150.97] (helo=adirmail01.adirtech.com) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17L6j4-0005lX-00 for ; Thu, 20 Jun 2002 14:32:10 -0400 Original-Received: by ADIRMAIL01 with Internet Mail Service (5.5.2653.19) id ; Thu, 20 Jun 2002 14:24:52 -0400 Original-To: "'help-gnu-emacs@gnu.org'" X-Mailer: Internet Mail Service (5.5.2653.19) Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:500 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:500 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C21886.8B96DF00 Content-Type: text/plain Hi, I've managed to write my change-frame-color-based-on-release function. I ultimately used the post-command-hook (as recommended in the archive of this list) and it works -- at least some of the time. I do, however, have a bug that causes an emacs lisp (error), which causes the hook to be set to NIL (and never reset). Since I'm not generally expecting colors to change all over, I don't notice when the error occurs. I don't find anything in the *Messages* buffer. Can anyone give advice about reliable post-command-hook debugging techniques? Thanks. ,Doug Douglas Lewan ADIR Technologies 732 836 3916 dlewan@adirtech.com The legal department has requested that this message appear as a footnote to all e-mails sent from my computer. This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by reply e-mail and delete all copies of this message and attachments. Thank you. ------_=_NextPart_001_01C21886.8B96DF00 Content-Type: text/html Content-Transfer-Encoding: quoted-printable debugging a post-command-hook

Hi,

I've managed to write my = change-frame-color-based-on-release function.

I ultimately used the  post-command-hook  = (as recommended in the archive of this list) and it works -- at least = some of the time.

I do, however, have a bug that causes an emacs lisp = (error), which causes the hook to be set to NIL (and never = reset).

Since I'm not generally expecting colors to change = all over, I don't notice when the error occurs.

I don't find anything in the *Messages* = buffer.

Can anyone give advice about reliable = post-command-hook debugging techniques?

Thanks.

,Doug
Douglas Lewan
ADIR Technologies
732 836 3916
dlewan@adirtech.com

The legal department has requested that this message = appear as a footnote to all e-mails sent from my computer.

This e-mail and attachments, if any, may contain = confidential and/or proprietary information. Please be advised that the = unauthorized use or disclosure of the information is strictly = prohibited. If you are not the intended recipient, please notify the = sender immediately by reply e-mail and delete all copies of this = message and attachments. Thank you.

------_=_NextPart_001_01C21886.8B96DF00--