[xmonad] Re: darcs patch: Shell.hs: +getBrowser, getEditor, helper... (and 5 more)

Justin Bogner mail at justinbogner.com
Tue Apr 1 09:13:17 EDT 2008


gwern0-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org wrote:
> Mon Mar 31 21:34:47 EDT 2008  gwern0-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
>   * Shell.hs: +getBrowser, getEditor, helper function
>   The helper function asks the shell for the value of a variable, else returns the second argument.
>   getBrowser and getEditor obviously specialize it for two particular possibly queries
> 
> Mon Mar 31 21:39:47 EDT 2008  gwern0-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
>   * Search.hs: remove an argument from selectSearch and promptSearch
>   The new getBrowser function allows us to mv the old selectSearch and promptSearch aside as too-general functions, and replace them with new versions, which employ getBrowser to supply one more argument. This allows us to replace the tedious 'selectSearch google "firefox"; selectSearch yahoo "firefox"...' with shorter 'selectSearch google' and so on. One less argument.
>   
>   Also, update the docs.
> 
> Mon Mar 31 21:50:49 EDT 2008  gwern0-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
>   * RunOrRaise.hs: FF 3 doesn't use the "Firefox-bin" classname
> 
> Mon Mar 31 22:17:40 EDT 2008  gwern0-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
>   * WindowGo.hs: +raiseBrowser, raiseEditor
>   Specialize runOrRaise in the same way as with Actions.Search, for one's browser and one's editors.
> 
> Mon Mar 31 22:20:12 EDT 2008  gwern0-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
>   * forgot a haddock for getEditor in Shell.hs
> 
> Mon Mar 31 22:31:30 EDT 2008  gwern0-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
>   * improve WindowGo.hs Haddock formatting
> 

As for the changes to RunOrRaise, firefox 3 actually works without 
resorting to classname (the pid thing works). I was just wary about 
changing it since firefox 3's not out yet, and that doesn't work with 
older firefoxes
_____
Justin Bogner


More information about the xmonad mailing list