From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: signal-USR1-hook woes Date: 08 Sep 2003 08:27:09 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3f5bd95c$0$49102$e4fe514c@news.xs4all.nl> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1062998776 29809 80.91.224.253 (8 Sep 2003 05:26:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Sep 2003 05:26:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 08 07:26:14 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19wEXW-0003M7-00 for ; Mon, 08 Sep 2003 07:26:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19wEX5-0006A2-7S for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Sep 2003 01:25:47 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19wEWd-000635-0j for help-gnu-emacs@gnu.org; Mon, 08 Sep 2003 01:25:19 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19wEWa-00061P-Cu for help-gnu-emacs@gnu.org; Mon, 08 Sep 2003 01:25:16 -0400 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.22) id 19wEWZ-000600-J6 for help-gnu-emacs@gnu.org; Mon, 08 Sep 2003 01:25:16 -0400 Original-To: help-gnu-emacs@gnu.org In-reply-to: <3f5bd95c$0$49102$e4fe514c@news.xs4all.nl> (bjdouma@xs2.xs4all.nl) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12342 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12342 > Newsgroups: gnu.emacs.help > From: bjdouma@xs2.xs4all.nl (Bauke Jan Douma) > > (message "list-emacs-open-files: done") > (let ( > (buf_list (buffer-list)) > ) Yikes! Why do you insist on formatting Lisp code as if it were C or (God forbid) Pascal? It makes it very hard to read and comprehend. > Alas, it doesn't work. It does work from within emacs by > calling M-x list-emacs-open-files or by eval'ing > (signal-process (emacs-pid) 10). > When doing kill -USR1 , all that happens is I get a > visual bell, the file is not written. > An strace reveals that the signal is sent allright. > > I am doing something wrong, but what? Well, is your function at all called? Does the message you produce at the beginning of your function gets inserted into the *Messages* buffer? In other words, the first question you should answer is: is the signal delivered to Emacs and handled, but your function has a bug, or is the signal itself handled incorrectly by Emacs? And it will help immensely if you tell what version of Emacs is that and on what platform.