[Aquamacs-devel] [Aquamacs-bugs] 23.1; no bell or visible bell

siemsen at ucar.edu siemsen at ucar.edu
Fri Sep 25 16:03:21 UTC 2009


David,

Thanks.  I got git :-), got the source, built it, and it runs.  I'll  
ask questions on the -devel list.

-- Pete


On Sep 23, 2009, at 4:04 PM, David Reitter wrote:

> On Sep 23, 2009, at 4:53 PM, siemsen at ucar.edu wrote:
>
>> David,
>>
>> Thanks!  That helped.
>>
>> I think Aquamacs may implement ring-bell-function incorrectly.  The  
>> online help says "Non-nil means call this function to ring the  
>> bell."  It doesn't really specify what nil means.
>
> exactly, and that is precisely what the implementation of the API  
> does.  What's incorrect there?
> (btw, Emacs specifies the API, so I won't change the meaning of that  
> variable.)
>
>> It could mean "use the standard bell" or "don't do anything".
>
> Yes.
> To turn the bell off, you have to set the variable to `ignore',  
> which is rougly what Aquamacs does.
>
>> Perhaps nil should mean "don't do anything".  To make a sound, the  
>> user should set ring-bell-function to play-sound.  In Aquamacs  
>> today, play-sound yields "This Emacs binary lacks sound support".
>
> Yes, that'd be nice to have.  It should be quite easy to do in Cocoa  
> - just implement `play-sound-internal' to load the specified file,  
> set the volume and play it.
>
> Most of it is a matter of copying and pasting code from another  
> implementation of that function.  You'll find a DEFUN macro that you  
> need to insert, and "defsubr" code at the end of the file.
>
>> FWIW, I updated the Aquamacs FAQ Wiki, with a table that may help  
>> users understand the settings of the two variables.
>
> thanks.
>
>> In XEmacs, I was able to set separate sounds for things.  So moving  
>> past the end of the buffer could cause a thunk, like hitting a  
>> wall, and a failing search could cause a sad sigh.
>
> Yes, that'd be nice.  You could do that in ring-bell-function (by  
> checking `this-command' maybe).
>
>> Anyway, it was fun.  For fun, I'm interested in getting Aquamacs to  
>> play sounds.  I'm willing to try to contribute code to make  
>> Aquamacs support play-sound, or something more appropriate to the  
>> Mac.  I have experience with C but not much with Lisp.  I think I  
>> could manage to check out Aquamacs sources from CVS, but I'd  
>> appreciate any help I can get to build it.  Is there a document  
>> that suggests how get and build it, code conventions, how Mac- 
>> specific stuff is kept apart from the core GNU Emacs, etc.?
>
> It's in git.  You need to install that if you don't have it (use  
> their binary distributino.)
>
> http://aquamacs.org/development.shtml
>
> then, see INSTALL.  There's a script for the first build.  After  
> that, just call "make" and it'll recompile and update the  
> application bundle in nextstep/Aquamacs.app, which you can run to  
> try it out.
>
> If you want to give it a shot, I'd be happy to answer questions on  
> the -devel list.
>
> - David
>
>




More information about the Aquamacs-devel mailing list