From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Veli-Pekka Tätilä" Newsgroups: gmane.emacs.help Subject: Audio Feedback in Flymake: Easily Extending Flymake Itself Date: Thu, 9 Oct 2008 08:33:46 +0300 Organization: FINNET customers Message-ID: <48ed96d8$0$25383$9b536df3@news.fv.fi> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1223530890 4318 80.91.229.12 (9 Oct 2008 05:41:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Oct 2008 05:41:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 09 07:42:26 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KnoI6-0004bm-LB for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Oct 2008 07:42:26 +0200 Original-Received: from localhost ([127.0.0.1]:53728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnoH2-00029W-Q7 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Oct 2008 01:41:20 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!newsfeed.freenet.de!newsfeed.tiscali.ch!tiscali!newsfeed1.ip.tiscali.net!fi.sn.net!newsfeed2.fi.sn.net!news.song.fi!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-RFC2646: Format=Flowed; Original Original-Lines: 42 Original-NNTP-Posting-Host: 82-128-218-109-Karjasilta-TR1.suomi.net Original-X-Trace: 1223530200 news.fv.fi 25383 82.128.218.109:1099 Original-X-Complaints-To: abuse@news.fv.fi Original-Xref: news.stanford.edu gnu.emacs.help:163258 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58601 Archived-At: Hi, Simply put, can I tell Flymake to produce sound when a new error is "created" or an existing one fixed? Visually, flymake uses a different background color to indicate line statuses and posts the error and warnings counts, I think, to the mode line. However, neither is particularly easy to read out smartly with a Windows screen reader from Emacs, who just sees a large "console", so I'd like to get audio feedback in stead. I'm using flymake_lua from: http://www.emacswiki.org/cgi-bin/wiki/FlymakeLua Playing the sound as such http://www.gnu.org/software/emacs/elisp/html_node/Sound-Output.html or posting a message containing a bell to the message line monitored by the screen reader http://www.gnu.org/software/emacs/emacs-lisp-intro/html_node/message.html seems easy enough. I've taken a quick look at the list of functions in flymake but didn't find hooks to add there. Nor did I find anything I could directly extend, in the Lua specific bits. I'm rather new to Elisp but have read the gist of Programming in Emacs Lisp. On a side note, flymake is one of the many things that made me go wow when I saw it in Emacs. Others, that I'm also using in Lua, include outline-minor-mode matching functions, incremental regexp searches, the Lua mode itself (due to the indents I do with C-i), not to mention dynamic abbreviation bound to the tab key, for locals and function names. Great features that go well together in coding. Any help appreciated. -- With kind regards Veli-Pekka Tätilä Accessibility, Apps and Coding plus Synths and Music: http://vtatila.kapsi.fi