Re: [abcusers] abc-mode for emacs

2003-03-11 Thread Atte André Jensen
On Tue, 11 Mar 2003 22:26:10 -0500 (EST)
Jeff Bigler <[EMAIL PROTECTED]> wrote:

> > Date: Sun, 9 Mar 2003 21:17:00 +0100
> > From: Atte =?ISO-8859-1?Q?Andr=E9?= Jensen <[EMAIL PROTECTED]>
> > tried values og 1 and 1; no change
> 
> You do have watchFile set to true, right?

Sure!
 
> From the man page:

> You might try putting these in your .Xdefaults:
> 
> gv*watchFile: true
> gv*watchFileFrequency: 1000

I was thinking at one point if "these resources are the same as the ones
in .Xresources", but since the gv manual mentions ~/.gv I figured not.
But this might be the cause of confusion, although I must say I don't
understand this:

[EMAIL PROTECTED] atte]$ grep atch .Xresources
!Emacs.paren-match.attributeBackground: #c8c8
!Emacs.paren-mismatch.attributeBackground:  #
[EMAIL PROTECTED] atte]$ grep gv .Xresources  
gv*font:\
[EMAIL PROTECTED] atte]$ 

Anyways; thanks for the help, but I'm now using SIGHUP to refresh gv
everytime I update the file from within emacs...

-- 
peace, love & harmony
Atte
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html


Re: [abcusers] abc-mode for emacs

2003-03-11 Thread Jeff Bigler
> Date: Sun, 9 Mar 2003 21:17:00 +0100
> From: Atte =?ISO-8859-1?Q?Andr=E9?= Jensen <[EMAIL PROTECTED]>

> On Sun, 9 Mar 2003 12:04:13 -0800
> Alice Corbin <[EMAIL PROTECTED]> wrote:
> 
> > On Sun, Mar 09, 2003 at 08:51:00PM +0100, Atte Andr=E9 Jensen wrote:
> 
> > > Very nice, only thing is that on my system (debian 3.0) it refreshes
> > > every 30 seconds or so :-( "man gv" mentions that
> 
> 
> > Maybe try it with a ":" after the "y".
> 
> Makes sense, didn't change anything, though :-(
> 
> > If you've got a app-defaults/GV somewhere (maybe in
> > /usr/X11R6/lib/X11/) look at it to see what it has.
> 
> GV.watchFileFrequency:  1000
> 
> tried values og 1 and 1; no change

You do have watchFile set to true, right?


>From the man page:

   watchFile
  Whether the document should be checked periodically
  and updated automatically if  changes are detected.
  Valid values are "True" and "False".

   watchFileFrequency
  Defines  the  time in milliseconds elapsing between
  successive checks of the document when watchFile is
  set  to "True".  Allowed values must be larger than
  500.


You might try putting these in your .Xdefaults:

gv*watchFile: true
gv*watchFileFrequency: 1000

I've tried them, and they work for me.  (I use * instead of . so it will
match even if there's some sort of subclass in-between that I'm
missing.)


Jeff
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html


Re: [abcusers] abc-mode for emacs

2003-03-11 Thread Jeff Bigler
> Date: Sun, 9 Mar 2003 14:52:49 +0100
> From: Kristian =?ISO-8859-1?Q?N=F8rgaard?= <[EMAIL PROTECTED]>

> And btw: How can I change the color of the syntaxhighlightning?

If you use the hilit19 package, you can add hilit mode-patterns to
abc-mode.el.  Here are the ones I use:



; hilit19 highlighting patterns for ABC mode

(hilit-set-mode-patterns
 'abc-mode
 '(
   ("\\s %.*$" nil comment)  ; comment - pink
   ("^%.*$" nil comment) ; comment - pink
   ("\\(:\|2\\|\|:\\|:\|\\|::\\|\|1\\|\|\|\\|\\[1\\|\\[2\\)" nil command)   ; repeat - 
yellow
   ("\\(\|\\|^.:\\|\\[\\|\\]\\)" nil keyword); keyword or bar line - cyan
   ("\([^\\\)]*\\(\\(.\\|\n\\)[^\\\(]*\\)*\)" nil define) ; slur - green
   ("[_^]*[A-Za-z][0-9]?-[ \\|]*[A-Za-z][0-9]?" nil define)   ; tie - green
   ("\"[^\\\"]*\\(\\(.\\|\n\\)[^\\\"]*\\)*\"" nil string) ; string - orange
   ("[\\]+" nil gnus-group-overflowing)
   )
 )



I set the colors using the following.  If you want, you can put your own
ABC-specific elements to the table below and use those elements for the
mode-patterns above, instead of co-opting the existing elements of
"comment", "define", "keyword", "string", "command", and
"gnus-group-overflowing", like I did.



(setq hilit-face-translation-table
 '(
   (text . palegreen)
   (comment . moccasin)
   (include . Plum)
   (define . green)
   (defun . cyan-bold)
   (decl . cyan)
   (type . yellow)
   (keyword . cyan)
   (label . orange-underlined)
   (string . orange)
   (struct . white-bold)
   (glob-struct . Plum)
   (named-param . Goldenrod)
   (crossref . Goldenrod)
   (formula . DarkGoldenrod)
   (active-error . default/DeepPink-bold)
   (error . yellow)
   (warning . green)
   (rule . cyan-underline)
   (msg-subject . yellow)
   (msg-from . green)
   (msg-to . pink)
   (msg-header . cyan)
   (msg-separator . black/lightblue)
   (msg-quote . pink)
   (msg-quote-1 . pink)
   (msg-quote-2 . orange)
   (msg-quote-3 . lightblue)
   (msg-quote-4 . green)
   (msg-quote-5 . yellow)
   (msg-quote-6 . red)
   (summary-seen . white)
   (summary-killed . white)
   (summary-Xed . green)
   (summary-deleted . white)
   (summary-unread . yellow)
   (summary-new . yellow-bold)
   (summary-current . green/dimgrey-bold)
   (gnus-group-unsubscribed . white)
   (gnus-group-empty)
   (gnus-group-full . green)
   (gnus-group-overflowing . red)
   (dired-directory . cyan)
   (dired-link . green)
   (dired-ignored . moccasin)
   (dired-deleted . orange)
   (dired-marked . Plum)
   (jargon-entry . cyan)
   (jargon-xref . Plum)
   (jargon-keyword . yellow)
   (command . yellow)
   )
 )


To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html


Re: [abcusers] abc-mode for emacs

2003-03-10 Thread Atte André Jensen
On Sun, 9 Mar 2003 19:48:29 -0800
Alice Corbin <[EMAIL PROTECTED]> wrote:

> On Sun, Mar 09, 2003 at 09:17:00PM +0100, Atte André Jensen wrote:

> > tried values og 1 and 1; no change
> > 
> OK, I googled the beast:
> 
>  watchFileFrequency
>  
> Defines the time in milliseconds elapsing between successive
> checks of the document when watchFile is set to "True". Allowed
> values must be larger than 500.
> 
> Which explains why setting it to '1' didn't have any effect.
> It doesn't explain, however, why your gv is not checking 
> every second.

Ok, "man gv" also mentions

"Note that sending gv the SIGHUP signal also causes an update of the
displayed document"

and that works (killall -s 1 gv), but maybe you could help me figure out
exactly where to insert that command in abc-mode.el to send gv a SIGHUP
everytime the ps file is updated, so at "run abc2ps (buffer)" and "run
abc2ps (song)"??? I'd rather not have the command (killall -s 1 gv)
appear in the mini-buffer...

-- 
peace, love & harmony
Atte
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html


Re: [abcusers] abc-mode for emacs

2003-03-09 Thread Alice Corbin
On Sun, Mar 09, 2003 at 09:17:00PM +0100, Atte André Jensen wrote:
> On Sun, 9 Mar 2003 12:04:13 -0800
> Alice Corbin <[EMAIL PROTECTED]> wrote:
> 
> > On Sun, Mar 09, 2003 at 08:51:00PM +0100, Atte André Jensen wrote:
> 
> > > Very nice, only thing is that on my system (debian 3.0) it refreshes
> > > every 30 seconds or so :-( "man gv" mentions that
> 
> 
> > Maybe try it with a ":" after the "y".
> 
> Makes sense, didn't change anything, though :-(
> 
> > If you've got a app-defaults/GV somewhere (maybe in
> > /usr/X11R6/lib/X11/) look at it to see what it has.
> 
> GV.watchFileFrequency:  1000
> 
> tried values og 1 and 1; no change
> 
OK, I googled the beast:

 watchFileFrequency
 
Defines the time in milliseconds elapsing between successive checks
of the document when watchFile is set to "True". Allowed values must 
be larger than 500.

Which explains why setting it to '1' didn't have any effect.
It doesn't explain, however, why your gv is not checking 
every second.

Ali
-- 
 _   _
 Ali Corbin/, |_  __(_) ___  _ __
 Axian, Inc.  //| |\\/ /| |/ _ \| '_ \   
 Phone: (503)644-6106 #205  _//_| | / / | | |_| | | | |  
 e-mail: [EMAIL PROTECTED] ((   //  |_|/_/\\|_|\_/|_|_| |_|  
 http://www.axian.com/  ``-''  ``-''
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html


Re: [abcusers] abc-mode for emacs

2003-03-09 Thread Atte André Jensen
On Sun, 9 Mar 2003 12:04:13 -0800
Alice Corbin <[EMAIL PROTECTED]> wrote:

> On Sun, Mar 09, 2003 at 08:51:00PM +0100, Atte André Jensen wrote:

> > Very nice, only thing is that on my system (debian 3.0) it refreshes
> > every 30 seconds or so :-( "man gv" mentions that


> Maybe try it with a ":" after the "y".

Makes sense, didn't change anything, though :-(

> If you've got a app-defaults/GV somewhere (maybe in
> /usr/X11R6/lib/X11/) look at it to see what it has.

GV.watchFileFrequency:  1000

tried values og 1 and 1; no change

-- 
peace, love & harmony
Atte
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html


Re: [abcusers] abc-mode for emacs

2003-03-09 Thread Alice Corbin
On Sun, Mar 09, 2003 at 08:51:00PM +0100, Atte André Jensen wrote:
> On Sat, 8 Mar 2003 08:15:20 -0800
> Alice Corbin <[EMAIL PROTECTED]> wrote:
> 
> > On Sat, Mar 08, 2003 at 02:44:34PM +0100, Bert Van Vreckem wrote:
> > > Kristian Nørgaard wrote:
> > > > I'm new to abc and have just installed abc-mode for emacs under
> > > > linux. How can I avoid that gv opens a new window each time I want
> > > > to preview my abc-file? I just want the allready opened window to
> > > > be updated.
> > > 
> > > Use the 'Redisplay' button in gv instead of invoking the preview 
> > > function from within Emacs.
> > > 
> > Or even easier, set the watch flag in gv (under the State button).
> > Then gv will automatically refresh when the .ps file changes.
> 
> Very nice, only thing is that on my system (debian 3.0) it refreshes
> every 30 seconds or so :-( "man gv" mentions that
> 
> "The document is by default checked once every second. This can be
> changed via the watchFileFrequency resource."
> 
> So I put "GV.watchFileFrequency   1" in my ~/.gv, but nothing changed.

Maybe try it with a ":" after the "y".
If you've got a app-defaults/GV somewhere (maybe in /usr/X11R6/lib/X11/)
look at it to see what it has.
Ali
-- 
 _   _
 Ali Corbin/, |_  __(_) ___  _ __
 Axian, Inc.  //| |\\/ /| |/ _ \| '_ \   
 Phone: (503)644-6106 #205  _//_| | / / | | |_| | | | |  
 e-mail: [EMAIL PROTECTED] ((   //  |_|/_/\\|_|\_/|_|_| |_|  
 http://www.axian.com/  ``-''  ``-''
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html


Re: [abcusers] abc-mode for emacs

2003-03-09 Thread Atte André Jensen
On Sat, 8 Mar 2003 08:15:20 -0800
Alice Corbin <[EMAIL PROTECTED]> wrote:

> On Sat, Mar 08, 2003 at 02:44:34PM +0100, Bert Van Vreckem wrote:
> > Kristian Nørgaard wrote:
> > > I'm new to abc and have just installed abc-mode for emacs under
> > > linux. How can I avoid that gv opens a new window each time I want
> > > to preview my abc-file? I just want the allready opened window to
> > > be updated.
> > 
> > Use the 'Redisplay' button in gv instead of invoking the preview 
> > function from within Emacs.
> > 
> Or even easier, set the watch flag in gv (under the State button).
> Then gv will automatically refresh when the .ps file changes.

Very nice, only thing is that on my system (debian 3.0) it refreshes
every 30 seconds or so :-( "man gv" mentions that

"The document is by default checked once every second. This can be
changed via the watchFileFrequency resource."

So I put "GV.watchFileFrequency   1" in my ~/.gv, but nothing changed.
Would you happen to know how I change it to about 1sec? At this rate the
refresh feature is useless IMHO.

-- 
peace, love & harmony
Atte
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html


Re: [abcusers] abc-mode for emacs

2003-03-09 Thread Kristian Nørgaard
OK, I've been using another emacs mode called "abctab-mode".
"abc-mode" seems also nice, I see that I now can create my .ps file from
within emacs. But now I cannot get a preview from within emacs, right?

Can I add this command option?

And btw: How can I change the color of the syntaxhighlightning?

- Kristian
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html


Re: [abcusers] abc-mode for emacs

2003-03-09 Thread Bert Van Vreckem
Alice Corbin wrote:
On Sat, Mar 08, 2003 at 09:20:05PM +0100, Kristian Nørgaard wrote:

Use the 'Redisplay' button in gv instead of invoking the preview 
function from within Emacs.

Or even easier, set the watch flag in gv (under the State button).
Then gv will automatically refresh when the .ps file changes.
But can I update the .ps file from within emacs?
Or do I need to use abcm2ps from the command line, to update my .ps
file, which gv then will redisplay?
I use a makefile, and use the default 'compile' command, which calls make.
You could do likewise, or set the 'compile' command to use abcm2ps, by
putting these lines in your .emacs file:
 (global-set-key [f9]   'compile)  ;; or whichever key you prefer
 (setq compile-command "abcm2ps ")
You can also find the compile command under the Tools button
on the toolbar.  There's a Shell Command menu item right under
it that can also be used to run abcm2ps.  Or you can bring up 
a shell buffer by typing 'M-x shell' and entering your commands
there.

Ali
Hang on, hang on. It's rather simpler than that. If you're using 
abc-mode revision 1.12 from  
(which is the most recent version AFAIK), it suffises to select 'Run 
abc2ps (buffer) (C-c C-p p)' or 'Run abc2ps (song) (C-c C-p 1)' from the 
abc menu. Maybe you should set your preferences for the abc tools that 
you use. Most settings can be customsed with 'M-x customize-group RET 
abc-mode RET'.

bert

--
Bert Van Vreckem
If Bill Gates had a penny for each time Windows crashed...
Wait a minute! He does!
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html


Re: [abcusers] abc-mode for emacs

2003-03-08 Thread Alice Corbin
On Sat, Mar 08, 2003 at 09:20:05PM +0100, Kristian Nørgaard wrote:
> 
> > > Use the 'Redisplay' button in gv instead of invoking the preview 
> > > function from within Emacs.
> > > 
> > Or even easier, set the watch flag in gv (under the State button).
> > Then gv will automatically refresh when the .ps file changes.
> 
> But can I update the .ps file from within emacs?
> Or do I need to use abcm2ps from the command line, to update my .ps
> file, which gv then will redisplay?
> 
I use a makefile, and use the default 'compile' command, which calls make.
You could do likewise, or set the 'compile' command to use abcm2ps, by
putting these lines in your .emacs file:

 (global-set-key [f9]   'compile)  ;; or whichever key you prefer
 (setq compile-command "abcm2ps ")

You can also find the compile command under the Tools button
on the toolbar.  There's a Shell Command menu item right under
it that can also be used to run abcm2ps.  Or you can bring up 
a shell buffer by typing 'M-x shell' and entering your commands
there.

Ali
-- 
 _   _
 Ali Corbin/, |_  __(_) ___  _ __
 Axian, Inc.  //| |\\/ /| |/ _ \| '_ \   
 Phone: (503)644-6106 #205  _//_| | / / | | |_| | | | |  
 e-mail: [EMAIL PROTECTED] ((   //  |_|/_/\\|_|\_/|_|_| |_|  
 http://www.axian.com/  ``-''  ``-''
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html


Re: [abcusers] abc-mode for emacs

2003-03-08 Thread Kristian Nørgaard

> > Use the 'Redisplay' button in gv instead of invoking the preview 
> > function from within Emacs.
> > 
> Or even easier, set the watch flag in gv (under the State button).
> Then gv will automatically refresh when the .ps file changes.

But can I update the .ps file from within emacs?
Or do I need to use abcm2ps from the command line, to update my .ps
file, which gv then will redisplay?

--
Kristian
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html


Re: [abcusers] abc-mode for emacs

2003-03-08 Thread Alice Corbin
On Sat, Mar 08, 2003 at 02:44:34PM +0100, Bert Van Vreckem wrote:
> Kristian Nørgaard wrote:
> > I'm new to abc and have just installed abc-mode for emacs under linux.
> > How can I avoid that gv opens a new window each time I want to preview
> > my abc-file? I just want the allready opened window to be updated.
> 
> Use the 'Redisplay' button in gv instead of invoking the preview 
> function from within Emacs.
> 
Or even easier, set the watch flag in gv (under the State button).
Then gv will automatically refresh when the .ps file changes.

Ali
-- 
 _   _
 Ali Corbin/, |_  __(_) ___  _ __
 Axian, Inc.  //| |\\/ /| |/ _ \| '_ \   
 Phone: (503)644-6106 #205  _//_| | / / | | |_| | | | |  
 e-mail: [EMAIL PROTECTED] ((   //  |_|/_/\\|_|\_/|_|_| |_|  
 http://www.axian.com/  ``-''  ``-''
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html


Re: [abcusers] abc-mode for emacs

2003-03-08 Thread Bert Van Vreckem
Kristian Nørgaard wrote:
I'm new to abc and have just installed abc-mode for emacs under linux.
How can I avoid that gv opens a new window each time I want to preview
my abc-file? I just want the allready opened window to be updated.
Use the 'Redisplay' button in gv instead of invoking the preview 
function from within Emacs.

I use Emacs myself, so if you have any other questions, feel free to 
send me a line...

bert

--
Bert Van Vreckem
If Bill Gates had a penny for each time Windows crashed...
Wait a minute! He does!
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html