Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

jasspa · JASSPA's MicroEmacs

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 127
  • Category: Cyberculture
  • Founded: Jul 7, 1999
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 1928 - 1957 of 2695   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#1928 From: "Phillips, Steven" <sphillips@...>
Date: Mon Sep 4, 2006 12:43 pm
Subject: RE: Restoring session?
sphillips@...
Send Email Send Email
 
 
Unfortunately on my system (Windows XP Pro) my username is "Rick Owen".  I have tried restoring my session using your example, but the embedded space seems to be a fatal problem.  I have tried the following without success:

me -cRick Owen
me -cRick\ Owen
me -c'Rick Owen'
me -c"Rick Owen"
me "-cRick Owen" (this one seemed to have it's own unique set of issues at startup) 
 
In your own user directory (see ME's $user-path) you should find the file "Rick Owen.esf", if not what is your ME $user-name? I find running
 
   me "-cFoo Bar"
 
works fine as long as "Foo Bar.esf" is in the user path. 

Is there any hope for me?   
 
Is this question limited in scope to ME ? :)
 
Steve
 

#1929 From: Rick Owen <rickowen@...>
Date: Mon Sep 4, 2006 12:54 pm
Subject: Re: Restoring session?
rickowen
Send Email Send Email
 
Hmmmm.  Didn't work a minute ago. Works now. Must be gremlins.  Earlier I did try me "-cRick Owen" and I received an error about a problem in mysql.emf which had been parsed a hundred times prior to that without an error.  This time when I tried your suggestion it worked fine.  I'm not one to argue with success, so I'll just assume that the first attempt failed because of some odd alignment of the planets...

As for the question "Is there any hope for me?" For the sake of my self esteem, we had probably better just limit it to "me" problems rather the problems with "me". :)

Rick.
 



----- Original Message ----
From: "Phillips, Steven" <sphillips@...>
To: jasspa@yahoogroups.com
Sent: Monday, September 4, 2006 6:43:24 AM
Subject: RE: [jasspa] Restoring session?

 
Unfortunately on my system (Windows XP Pro) my username is "Rick Owen".  I have tried restoring my session using your example, but the embedded space seems to be a fatal problem.  I have tried the following without success:

me -cRick Owen
me -cRick\ Owen
me -c'Rick Owen'
me -c"Rick Owen"
me "-cRick Owen" (this one seemed to have it's own unique set of issues at startup) 
 
In your own user directory (see ME's $user-path) you should find the file "Rick Owen.esf", if not what is your ME $user-name? I find running
 
   me "-cFoo Bar"
 
works fine as long as "Foo Bar.esf" is in the user path. 

Is there any hope for me?   
 
Is this question limited in scope to ME ? :)
 
Steve
 


#1930 From: Jon Green <jon@...>
Date: Mon Sep 4, 2006 3:18 pm
Subject: Re: Restoring session?
bigfatmrmoose
Send Email Send Email
 
Phillips, Steven wrote:
>
>
>     Unfortunately on my system (Windows XP Pro) my username is "Rick
>     Owen".  I have tried restoring my session using your example, but
>     the embedded space seems to be a fatal problem.  I have tried the
>     following without success:
>
>     me -cRick Owen
>     me -cRick\ Owen
>     me -c'Rick Owen'
>     me -c"Rick Owen"
>     me "-cRick Owen" (this one seemed to have it's own unique set of
>     issues at startup)
>
>     In your own user directory (see ME's $user-path) you should find the
>     file "Rick Owen.esf", if not what is your ME $user-name? I find running
>
>        me "-cFoo Bar"

I'd better add this bracketing to the help as well, it never occurred to
me that people would have a space in their login name as it is typically
the same as the E-mail name. Not being overly familiar with Windows I'm
not sure that I'd have known what to do here either.

Jon.

>
>     works fine as long as "Foo Bar.esf" is in the user path.
>
>     Is there any hope for me?
>
>     Is this question limited in scope to ME ? :)
>
>     Steve
>

#1931 From: Rick Owen <rickowen@...>
Date: Mon Sep 4, 2006 6:48 pm
Subject: Syntax highlight for ColdFusion -- minor problem
rickowen
Send Email Send Email
 
I normally use a color scheme that made this difficult to notice.  I changed to the default color scheme and it popped right out at me.  The closing '>' for a CF tag is not being colored correctly.  If you look at the attached screen snippet, you can clearly see the difference between the CF coloring and the HTML coloring on the close in '>'.

Thanks,
Rick.

 



#1932 From: Jon Green <jon@...>
Date: Mon Sep 4, 2006 8:25 pm
Subject: Re: Syntax highlight for ColdFusion -- minor problem
bigfatmrmoose
Send Email Send Email
 
Rick Owen wrote:
> I normally use a color scheme that made this difficult to notice.  I
> changed to the default color scheme and it popped right out at me.  The
> closing '>' for a CF tag is not being colored correctly.  If you look at
> the attached screen snippet, you can clearly see the difference between
> the CF coloring and the HTML coloring on the close in '>'.
>
> Thanks,
> Rick.
>
>

Fix as attached.
Jon.
cd /home/jon/merep/me/macros/
gdiff --context --minimal --ignore-space-change --recursive
"/home/jon/merep/me/macros/hkcfms.emf~" "/home/jon/merep/me/macros/hkcfms.emf"

*** /home/jon/merep/me/macros/hkcfms.emf~ 2006-08-28 12:06:14.675670000 +0100
--- /home/jon/merep/me/macros/hkcfms.emf 2006-09-04 21:19:31.001806000 +0100
***************
*** 406,412 ****
       cfm-set-hilight .hilight.cfmsqltags
       hilight .hilight.cfmsqltags 4 "#" "#" ""                  .scheme.variable
       hilight .hilight.cfmsqltags 1 "\\w+\\s*\\}="              .scheme.operator
!     hilight .hilight.cfmsqltags 0x80 ">" .hilight.cfmsql      $global-scheme

       ; cfmsql file highlighting
       0 hilight .hilight.cfmsql 3 75                   $global-scheme
--- 406,412 ----
       cfm-set-hilight .hilight.cfmsqltags
       hilight .hilight.cfmsqltags 4 "#" "#" ""                  .scheme.variable
       hilight .hilight.cfmsqltags 1 "\\w+\\s*\\}="              .scheme.operator
!     hilight .hilight.cfmsqltags 0x80 "/?>" .hilight.cfmsql    .scheme.keyword
[EXIT 1]

       ; cfmsql file highlighting
       0 hilight .hilight.cfmsql 3 75                   $global-scheme


cd /home/jon/merep/me/macros/
gdiff --context --minimal --ignore-space-change --recursive
"/home/jon/merep/me/macros/hkcfm.emf~" "/home/jon/merep/me/macros/hkcfm.emf"

*** /home/jon/merep/me/macros/hkcfm.emf~ 2006-08-28 12:06:13.570214000 +0100
--- /home/jon/merep/me/macros/hkcfm.emf 2006-09-04 21:18:41.655254000 +0100
***************
*** 50,63 ****
       cfm-set-hilight .hilight.cfmtags
       hilight .hilight.cfmtags 1 "\\w+\\s*\\}="                .scheme.operator
       hilight .hilight.cfmtags 4 "#" "#" ""                    .scheme.variable
!     hilight .hilight.cfmtags   0x80 ">" .hilight.cfm         $global-scheme

       ; <CFSET enclosure hilighting> - variable assignment
       0 hilight .hilight.cfmsetags 3 50                        $global-scheme
       cfm-set-hilight .hilight.cfmsetags
       hilight .hilight.cfmsetags 4 "#" "#" ""                  .scheme.variable
       hilight .hilight.cfmsetags 1 "\\w+\\s*\\}="              .scheme.variable
!     hilight .hilight.cfmsetags 0x80 ">" .hilight.cfm         $global-scheme
   !endif

   !if &and &sin "h" .fhook-cfm.setup &band .hilight.flags 0x02
--- 50,63 ----
       cfm-set-hilight .hilight.cfmtags
       hilight .hilight.cfmtags 1 "\\w+\\s*\\}="                .scheme.operator
       hilight .hilight.cfmtags 4 "#" "#" ""                    .scheme.variable
!     hilight .hilight.cfmtags   0x80 "/?>" .hilight.cfm       .scheme.keyword

       ; <CFSET enclosure hilighting> - variable assignment
       0 hilight .hilight.cfmsetags 3 50                        $global-scheme
       cfm-set-hilight .hilight.cfmsetags
       hilight .hilight.cfmsetags 4 "#" "#" ""                  .scheme.variable
       hilight .hilight.cfmsetags 1 "\\w+\\s*\\}="              .scheme.variable
!     hilight .hilight.cfmsetags 0x80 "/?>" .hilight.cfm       .scheme.keyword
   !endif

   !if &and &sin "h" .fhook-cfm.setup &band .hilight.flags 0x02
[EXIT 1]

#1933 From: Rick Owen <rickowen@...>
Date: Tue Sep 5, 2006 12:36 am
Subject: Another session restore problem...
rickowen
Send Email Send Email
 
Thanks. It took me a minute to slip out of my Windows persona and drop back a decade to remember how to interpret diff output, but it was a good exercise.

Now I have a different problem.  When I do a restore session the file that is visible does not get syntax highlighted and in the case of a .cfm file as the visible file me reports an error with the hkcfm.emf file.  That was apparently the source of the problem that I encountered when I very first try session restore.  I've attached a screen capture of the message that I get, although there is no error in the file because if I exit and then restart ME without restoring my session and then open a .cfm file there is no error.

Again, the error only occurs on the file type of the file that is visible.  If I have a .cfm file open and a .emf file, and the .emf file is the one that is visible when I exit, when I restore my session the .emf has *no* syntax highlighting while the .cfm is highlighted just fine.

Thanks,
Rick.


#1934 From: Rick Owen <rickowen@...>
Date: Tue Sep 5, 2006 12:47 am
Subject: Another minor syntax highlighting issue...
rickowen
Send Email Send Email
 
Sorry to keep picking at these little nits, but it is so close that I hate to let it drop until everything looks as perfect as humanly possible.

In the SQL that is between the <cfquery> and </cfquery>, strings are not being highlighted as such.  For example,

            <cfquery name="q_get_00trn605" datasource="#data#">
               select to_char(complete_date,'mm/dd/yyyy') as complete_date, complete_date as cdate
                 from class_attend ca inner join class cl on ca.class_code = cl.class_code
                where emp_ssn_num = '#q_get_newemp_list.emp_ssn_num#'
                  and course_code = '00TRN605'
                  and course_rev_num = '02'
                  and instr_type_code = 'CK'
                  and rownum=1
                order by complete_date asc
            </cfquery>

 
In the above query, the "mm/dd/yyyy", the "#q_get_newemp_list.emp_ssn_num#", the "00TRN605", the "02" and the "CK" should all be highlighted as strings, but they are showing as plain text.

Attached is a screen shot.

Rick.


#1935 From: Steven Phillips <bill@...>
Date: Tue Sep 5, 2006 5:02 am
Subject: Re: Another session restore problem...
bill@...
Send Email Send Email
 
I think this problem is caused by your setup rather than a general problem, in
an earlier email you made reference to 'a problem in mysql.emf' and I believe
this is the cause of the hilighting & -c issues.

To prove this try moving all your my*.emf files out of the way and testing
again, if it now works the problem lies in your customerisation files being
incompatible with the new release.

To fix start a clean (empty) me session, load in an SQL file (which will
execute hksql.emf & mysql.emf) and get the line number from the error message.
Hopefully when you load mysql.emf and go to the line you will be able to work
out what is wrong.

If none of the above is right, try starting a clean me session, load 2 emf
files *only* exit and restart, does this still reproduce the issue? Try the
same thing for 2 cfm files etc until you manage to reproduce the issue (it is
unlikely to happen for all files otherwise I would be able to reproduce it :)

Steve


> Subject: [jasspa] Another session restore problem...
> From: Rick Owen <rickowen@...>
> Date: Tuesday, September 5, 2006, 1:36:11 AM
> To: jasspa@yahoogroups.com
>
> Thanks. It took me a minute to slip out of my Windows persona and drop back
> a decade to remember how to interpret diff output, but it was a good exercise.

> Now I have a different problem.  When I do a restore session the file that
> is visible does not get syntax highlighted and in the case of a .cfm file as
> the visible file me reports an error with the hkcfm.emf file.  That was
> apparently the source of the problem that I encountered when I very first
> try session restore.  I've attached a screen capture of the message that I
> get, although there is no error in the file because if I exit and then
> restart ME without restoring my session and then open a .cfm file there is no
error.

> Again, the error only occurs on the file type of the file that is visible. 
> If I have a .cfm file open and a .emf file,  and the .emf file is the one
> that is visible when I exit, when I restore my session the .emf has *no*
> syntax highlighting while the .cfm is highlighted just fine.

> Thanks,
> Rick.

>
>

#1936 From: Jon Green <jon@...>
Date: Tue Sep 5, 2006 9:08 am
Subject: Re: Another minor syntax highlighting issue...
bigfatmrmoose
Send Email Send Email
 
Rick Owen wrote:
> Sorry to keep picking at these little nits, but it is so close that I
> hate to let it drop until everything looks as perfect as humanly possible.
>
> In the SQL that is between the <cfquery> and </cfquery>, strings are not
> being highlighted as such.  For example,
>
>             <cfquery name="q_get_00trn605" datasource="#data#">
>                select to_char(complete_date,'mm/dd/yyyy') as
> complete_date, complete_date as cdate
>                  from class_attend ca inner join class cl on
> ca.class_code = cl.class_code
>                 where emp_ssn_num = '#q_get_newemp_list.emp_ssn_num#'
>                   and course_code = '00TRN605'
>                   and course_rev_num = '02'
>                   and instr_type_code = 'CK'
>                   and rownum=1
>                 order by complete_date asc
>             </cfquery>
>
>
> In the above query, the "mm/dd/yyyy", the
> "#q_get_newemp_list.emp_ssn_num#", the "00TRN605", the "02" and the "CK"
> should all be highlighted as strings, but they are showing as plain text.
>
> Attached is a screen shot.
>
> Rick.
>

Fix:
Jon.

*** /home/jon/.jasspa/jon/hkcfms.emf~ 2006-09-04 21:16:45.105747000 +0100
--- /home/jon/.jasspa/jon/hkcfms.emf 2006-09-05 10:06:00.092479000 +0100
***************
*** 410,415 ****
--- 410,417 ----

        ; cfmsql file highlighting
        0 hilight .hilight.cfmsql 3 75                   $global-scheme
+     hilight .hilight.cfmsql 0x804 "'" "'" "\\"       .scheme.string
+     hilight .hilight.cfmsql 0x804 "\"" "\"" "\\"     .scheme.string
        hilight .hilight.cfmsql 4 "<!---" "--->" ""      .scheme.comment
        hilight .hilight.cfmsql 4 "#" "#" ""             .scheme.variable
        ; Jump to the new <cf...> tags scheme
[EXIT 1]

#1937 From: Rick Owen <rickowen@...>
Date: Tue Sep 5, 2006 12:48 pm
Subject: Re: Another session restore problem...
rickowen
Send Email Send Email
 

 Steve,

I did try this and the results were the same as I reported before. I don't think it's an issue with my "myxxx.emf" files because it only affects the file that is visible when ME starts up, regardless of the type of file that it is.  For example, I just edited the hkcfms.emf file to add the fix that Jon sent to me.  I exited with hkcfms.emf as the buffer that was being displayed.  I exited and then restored my session and now there is no syntax highlighting for .emf files.  Even if I load an .emf file that I've never edited before, it will not syntax highlight.

The only time I get the error message to which you refer is if a .cfm file is restored as the visible file.

I did try this with none of my ".emf" in the startup directory: started up ME with no session restore and only loaded hkcfms.emf and hkperl.emf and then exited.  Started ME again, this time with session restore.  Neither hkperl.emf, nor hkcfms.emf is syntax highlighted and any other .emf loaded during that session will not be syntax highlighted either.

Let me know what other information you need.  I'll be glad to help however I can.

Rick.

----- Original Message ----
From: Steven Phillips <bill@...>
To: Rick Owen <jasspa@yahoogroups.com>
Sent: Monday, September 4, 2006 11:02:13 PM
Subject: Re: [jasspa] Another session restore problem...

I think this problem is caused by your setup rather than a general problem, in
an earlier email you made reference to 'a problem in mysql.emf' and I believe
this is the cause of the hilighting & -c issues.

To prove this try moving all your my*.emf files out of the way and testing
again, if it now works the problem lies in your customerisation files being
incompatible with the new release.

To fix start a clean (empty) me session, load in an SQL file (which will
execute hksql.emf & mysql.emf) and get the line number from the error message.
Hopefully when you load mysql.emf and go to the line you will be able to work
out what is wrong.

If none of the above is right, try starting a clean me session, load 2 emf
files *only* exit and restart, does this still reproduce the issue? Try the
same thing for 2 cfm files etc until you manage to reproduce the issue (it is
unlikely to happen for all files otherwise I would be able to reproduce it :)

Steve


> Subject: [jasspa] Another session restore problem...
> From: Rick Owen <rickowen@...>
> Date: Tuesday, September 5, 2006, 1:36:11 AM
> To: jasspa@yahoogroups.com
>  
> Thanks. It took me a minute to slip out of my Windows persona and drop back
> a decade to remember how to interpret diff output, but it was a good exercise.

> Now I have a different problem.  When I do a restore session the file that
> is visible does not get syntax highlighted and in the case of a .cfm file as
> the visible file me reports an error with the hkcfm.emf file.  That was
> apparently the source of the problem that I encountered when I very first
> try session restore.  I've attached a screen capture of the message that I
> get, although there is no error in the file because if I exit and then
> restart ME without restoring my session and then open a .cfm file there is no error.

> Again, the error only occurs on the file type of the file that is visible. 
> If I have a .cfm file open and a .emf file,  and the .emf file is the one
> that is visible when I exit, when I restore my session the .emf has *no*
> syntax highlighting while the .cfm is highlighted just fine.

> Thanks,
> Rick.

>  
>  




__________________________________________________________________________

This is an unmoderated list. JASSPA is not responsible for the content of
any material posted to this list.

To unsubscribe, send a mail message to

    mailto:jasspa-unsubscribe@yahoogroups.com

or visit http://groups.yahoo.com/group/jasspa and
modify your account settings manually.



Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jasspa/

<*> To unsubscribe from this group, send an email to:
    jasspa-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/






#1938 From: Rick Owen <rickowen@...>
Date: Thu Sep 7, 2006 11:57 am
Subject: Windows clipboard key assignments
rickowen
Send Email Send Email
 
Over the years I have developed my own set of keystrokes as I have used a variety of editors.  I am, however, still living with the emacs style region / yank key assignments.  Is there a simple macro that I can call that will make the key assignments for the windows-style clipboard key assignments (e.g. ctrl-c, ctrl-v, shift-insert, ctrl-insert, etc)?

Thanks,
Rick.



#1939 From: Jon Green <jon@...>
Date: Thu Sep 7, 2006 6:28 pm
Subject: Re: Windows clipboard key assignments
bigfatmrmoose
Send Email Send Email
 
Rick Owen wrote:
> Over the years I have developed my own set of keystrokes as I have used
> a variety of editors.  I am, however, still living with the emacs style
> region / yank key assignments.  Is there a simple macro that I can call
> that will make the key assignments for the windows-style clipboard key
> assignments (e.g. ctrl-c, ctrl-v, shift-insert, ctrl-insert, etc)?
>
> Thanks,
> Rick.
>

I think you are suggesting the standard Windows emulation:

user-setup -> Start-up -> Emulation -> CUA (Windows Style)

Jon.

#1940 From: "cut1n1paste" <cut1n1paste@...>
Date: Sun Sep 10, 2006 9:10 am
Subject: notes + additional highlighting
cut1n1paste
Send Email Send Email
 
Hello all,

i have one question: i use Notes tool a lot, and would like to add
some highlighting to it.
i mean, let's say, now it higlights urls only... but what if it could
also highlight e.g. /TEXT/ or *TEXT* or _TEXT_? or some another
specific rules or conditions?

is it possible? and if yes, then where and how should i defined such
rules?

thank you in advance.


--
cnp

#1941 From: "cut1n1paste" <cut1n1paste@...>
Date: Sun Sep 10, 2006 9:14 am
Subject: Re: Windows clipboard key assignments
cut1n1paste
Send Email Send Email
 
> Rick Owen wrote:
> > Over the years I have developed my own set of keystrokes as I have
used
> > a variety of editors.  I am, however, still living with the emacs
style
> > region / yank key assignments.  Is there a simple macro that I can
call
> > that will make the key assignments for the windows-style clipboard
key
> > assignments (e.g. ctrl-c, ctrl-v, shift-insert, ctrl-insert, etc)?
> >
> I think you are suggesting the standard Windows emulation:
> user-setup -> Start-up -> Emulation -> CUA (Windows Style)

Rick, you may also add sometning like that:
global-bind-key yank "C-c C-v"
global-bind-key kill-region "C-c C-x"
global-bind-key copy-region "C-c C-c"
to your .emf-file (changing, of course, these keys to the ones you do
want).

#1942 From: Steven Phillips <bill@...>
Date: Sun Sep 10, 2006 7:08 pm
Subject: Re: notes + additional highlighting
bill@...
Send Email Send Email
 
I am genuinely surprise at the number of people using notes, the first version
was more a proof of concept yet it seems there are quite a few real users of
it (so apologies if I've managed to break anything in this release).

There is a problem with adding extra highlighting tokens (like the *'s in
*bold*) and that is that notes are often for copy text out of and this text
will have these extra tokens which may be undesired.

That said, I want to go one further, I want the ability to store the major
mode for each note, i.e. for one note I may want it to contain C code so I
want the highlighting and indentation rules of C, the next may be ME macro
code etc.

W.R.T. /TEXT/ & *TEXT* etc Jon's doc mode goes some way to doing this, the new
JST mode (which alas need some docs and examples) goes quite a lot further.
They are both major modes so this addition would work.

Steve

> Subject: [jasspa] notes + additional highlighting
> From: cut1n1paste <cut1n1paste@...>
> Date: Sunday, September 10, 2006, 10:10:31 AM
> To: jasspa@yahoogroups.com
> Hello all,

> i have one question: i use Notes tool a lot, and would like to add
> some highlighting to it.
> i mean, let's say, now it higlights urls only... but what if it could
> also highlight e.g. /TEXT/ or *TEXT* or _TEXT_? or some another
> specific rules or conditions?

> is it possible? and if yes, then where and how should i defined such
> rules?

> thank you in advance.

#1943 From: Jon Green <jon@...>
Date: Sun Sep 10, 2006 7:47 pm
Subject: Re: notes + additional highlighting
bigfatmrmoose
Send Email Send Email
 
cut1n1paste wrote:
> Hello all,
>
> i have one question: i use Notes tool a lot, and would like to add
> some highlighting to it.
> i mean, let's say, now it higlights urls only... but what if it could
> also highlight e.g. /TEXT/ or *TEXT* or _TEXT_? or some another
> specific rules or conditions?
>
> is it possible? and if yes, then where and how should i defined such
> rules?
>
> thank you in advance.
>
>

There is some additional highlighting in notes as follows, however notes
does not allow "mynotes.emf" for user extensions which it should
probably do. At the moment then you need to copy it to your user
directory and then add additional hilighting.

Jon.

Some of the hilighting that exists in "notes"

  >c>
/* This is a C code insert */
  >end>

  >emf>
; This is a microEmacs insert
  >end>

  >cpp>
// This is a C++ insert
  >end>

  >perl>
# This is a perl insert
  >end>

  >tcl>
# This is a tcl insert
  >end>

  >shell>
# This is a shell script
  >end>

  >make>
# This is a makefile insert
  >end>

  >pseudo>
// Pseudo code
IF condition
THEN
      something
ENDIF
  >end>

  >bnf>
# BNF code
Some bnf ::= end
  >end>

  >emf>
; If you add the following to "notes.emf" then you can have document
; format as well, starts with ">doc>"
      ; Allow Text code inserts ...
      enf-add-file-support "doc"
  >end>

#1944 From: "cut1n1paste" <cut1n1paste@...>
Date: Mon Sep 11, 2006 7:36 am
Subject: notes + folding
cut1n1paste
Send Email Send Email
 
hello all

first of all, thank you very much Jon and Steven for your help with my
previous question, concerning notes tool and additional highliting.

now two more questions, if you don't mind:
1. is it possible to make folding also work in notes? and if yes, then
how? something with mynotes.emf? as it described here:
http://www.jasspa.com/how2doc.html?

2. is it possible to change folding shortcuts? i've tried
global-bind-key in myself.emf, but with no success... is there any
other way?


thank you.

#1945 From: "cut1n1paste" <cut1n1paste@...>
Date: Mon Sep 11, 2006 11:30 am
Subject: highlighting, two more question
cut1n1paste
Send Email Send Email
 
hello all,

two more questions :)

1. how can i add non-western chars to highlighted chars list?

let's talk, e.g., about "-!-  document  -!-" mode -- so, i should be
looking in the docmacro.emf, i assume. and that seems to be the right
thing -- while looking at docmacro.emf i've found there bold, italic
and underlined text rules. so, simple adding chars there did the trick.

but what about bullets 1. 1) and *? how can i add non-western chars in
order to highlight non-western bullets?


2. if i'd like to change the color, which is used to highlight the
string ("TEXT"), i should be looking in the corresponding scheme-file,
right?
so, i see there this row:
add-color-scheme .scheme.string .col6 .col1 .col14 .col1 .col6 .col16
.col14 .col16 0 8 0 8 0 8 0 8
which is purple on black "TEXT" from Default White on Black

.col14 seems to be the purple -- but changing it to any other (.col12
or .col13) makes no changes in highlighting... so, how could i adjust it?


thank you,

--
cnp

#1946 From: "Phillips, Steven" <sphillips@...>
Date: Mon Sep 11, 2006 11:44 am
Subject: RE: highlighting, two more question
sphillips@...
Send Email Send Email
 
> 1. how can i add non-western chars to highlighted chars list?
>
> let's talk, e.g., about "-!-  document  -!-" mode -- so, i
> should be looking in the docmacro.emf, i assume. and that
> seems to be the right thing -- while looking at docmacro.emf
> i've found there bold, italic and underlined text rules. so,
> simple adding chars there did the trick.
>
> but what about bullets 1. 1) and *? how can i add non-western
> chars in order to highlight non-western bullets?

The '*' bullet is hilighted via the line:

     hilight .hilight.doc 0x20 "*\\}[ \t]+\\w"
.scheme.no1

You can add a similar line to your mydoc.emf replacing the '*' with
whatever char. Similarly:

     hilight .hilight.doc 0x21 "\\w)"
.scheme.no1

Hilights the A) etc.

However if you what to generate good html automatically from your
markuped text you may want to look at JST rather than doc mode which has
an export to html. I am thinking of making this the default major mode
for notes.


> 2. if i'd like to change the color, which is used to
> highlight the string ("TEXT"), i should be looking in the
> corresponding scheme-file, right?
> so, i see there this row:
> add-color-scheme .scheme.string .col6 .col1 .col14 .col1 .col6 .col16
> .col14 .col16 0 8 0 8 0 8 0 8
> which is purple on black "TEXT" from Default White on Black
>
> .col14 seems to be the purple -- but changing it to any other
> (.col12 or .col13) makes no changes in highlighting... so,
> how could i adjust it?

You should be using the scheme-editor to do this (see Tools -> Scheme
Editor) the Bold scheme is under 'Formatted Text' schemes.

Steve

>
>
> thank you,
>
> --
> cnp
>
>
>
>
>
>
> ______________________________________________________________
> ____________
>
> This is an unmoderated list. JASSPA is not responsible for
> the content of
> any material posted to this list.
>
> To unsubscribe, send a mail message to
>
>     mailto:jasspa-unsubscribe@yahoogroups.com
>
> or visit http://groups.yahoo.com/group/jasspa and
> modify your account settings manually.
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>

#1947 From: "cut1n1paste" <cut1n1paste@...>
Date: Mon Sep 11, 2006 12:35 pm
Subject: Re: highlighting, two more question
cut1n1paste
Send Email Send Email
 
Steven, thank you once again for your help and interest.


but i seems to be missing the point :). here it goes:

> > 1. how can i add non-western chars to highlighted chars list?
> > but what about bullets 1. 1) and *? how can i add non-western
> > chars in order to highlight non-western bullets?
> The '*' bullet is hilighted via the line:
>     hilight .hilight.doc 0x20 "*\\}[ \t]+\\w"
> .scheme.no1
> You can add a similar line to your mydoc.emf replacing the '*' with
> whatever char. Similarly:
>     hilight .hilight.doc 0x21 "\\w)"
> .scheme.no1
> Hilights the A) etc.

for now bullet highlights text, which looks like that:
1. here goes some text

where 'here goes some text' can contain western chars only (it does
not hilights when containing non-western chars).

so, my question was is it possible to somehow modify this bullet-rule
in order to hilight also non-western chars?

[also, i assumed that adding somehow those non-western chars to this
rule could solve the problem -- the same way i expanded chars in bold
/ italic / underline text descriptions -- which now looks something
like that:
  hilight .hilight.doc 1 "<[A-Za-z0-9_а-яА-Я-+
\/():;.,]+>"
            .scheme.italic
however, now i do not understand how can i add non-western chars to
the bullet-rule]

> However if you what to generate good html automatically from your
> markuped text you may want to look at JST rather than doc mode which
> has
> an export to html. I am thinking of making this the default major
> mode for notes.

in fact, i do not plan to generate html from my notes... but while we
are here, could you please tell me what is JST? :)

> You should be using the scheme-editor to do this
> (see Tools -> Scheme
> Editor) the Bold scheme is under 'Formatted Text' schemes.

i thought so :), but ME is running on a remote machine in a mouseless
terminal :), so it's quite difficult to use Scheme Editor -- without a
mouse :).

anyway, thank you for your answer, i probably should do it in a local
copy of ME...


--
cnp

#1948 From: Rick Owen <rickowen@...>
Date: Mon Sep 11, 2006 4:57 pm
Subject: column number in the mode? status? line
rickowen
Send Email Send Email
 
I'm not sure what the status line at the bottom of the screen is called (mode line?, status line?). It's the line that shows the buffer name, buffer mode, line #, etc.  Is there a way to configure that to show the cursor column on it as well?

Thanks,
Rick.
 



#1949 From: Jon Green <jnaught@...>
Date: Mon Sep 11, 2006 5:34 pm
Subject: Re: column number in the mode? status? line
jnaught@...
Send Email Send Email
 
Rick Owen wrote:
> I'm not sure what the status line at the bottom of the screen is called
> (mode line?, status line?). It's the line that shows the buffer name,
> buffer mode, line #, etc.  Is there a way to configure that to show the
> cursor column on it as well?
>
> Thanks,
> Rick.

No is the short answer!
Jon.

#1950 From: "Phillips, Steven" <sphillips@...>
Date: Mon Sep 11, 2006 4:59 pm
Subject: RE: Re: highlighting, two more question
sphillips@...
Send Email Send Email
 
The '\\w' in the hilighting token means any word character (i.e.
normally a-z A-Z 0-9), you can replace this with a '[.....]' character
group (i.e.  "*\\}[ \t]+[A-Za-z.....]") or you could change your word
group to include the missing western characters and I think there may be
a problem here.

In your example you have 'а-я', this is not ME macro format
compliant, ME uses C style '\x??' for a text character where '??' is the
hex code (i.e. [\x41-\x5a] == [A-Z]). However 1072 is well above the 255
single byte max value, you seem to be giving it unicode chars which will
not work, ME is a single byte editor. What language are you editing in
and what code page?

Try setting user-setup -> Start-Up -> Language and Platform -> Display
Char Set correctly, this should set your word character group correctly
(i.e. if set to Russian the word group will include all the Cyrillic
alphabet) and this will mean that the bullt-in hilighting and word
commands (like forward-word) will work correctly.

Does the current ME installation support your language and code page? If
not we should try adding support for it  first.

Does this make sense?

Steve

> -----Original Message-----
> From: jasspa@yahoogroups.com [mailto:jasspa@yahoogroups.com]
> On Behalf Of cut1n1paste
> Sent: 11 September 2006 13:35
> To: jasspa@yahoogroups.com
> Subject: [jasspa] Re: highlighting, two more question
>
> Steven, thank you once again for your help and interest.
>
>
> but i seems to be missing the point :). here it goes:
>
> > > 1. how can i add non-western chars to highlighted chars list?
> > > but what about bullets 1. 1) and *? how can i add
> non-western chars
> > > in order to highlight non-western bullets?
> > The '*' bullet is hilighted via the line:
> >     hilight .hilight.doc 0x20 "*\\}[ \t]+\\w"
> > .scheme.no1
> > You can add a similar line to your mydoc.emf replacing the '*' with
> > whatever char. Similarly:
> >     hilight .hilight.doc 0x21 "\\w)"
> > .scheme.no1
> > Hilights the A) etc.
>
> for now bullet highlights text, which looks like that:
> 1. here goes some text
>
> where 'here goes some text' can contain western chars only
> (it does not hilights when containing non-western chars).
>
> so, my question was is it possible to somehow modify this
> bullet-rule in order to hilight also non-western chars?
>
> [also, i assumed that adding somehow those non-western chars
> to this rule could solve the problem -- the same way i
> expanded chars in bold / italic / underline text descriptions
> -- which now looks something like that:
>  hilight .hilight.doc 1
> "<[A-Za-z0-9_а-яА-Я-+ \/():;.,]+>"
>            .scheme.italic
> however, now i do not understand how can i add non-western
> chars to the bullet-rule]
>
> > However if you what to generate good html automatically from your
> > markuped text you may want to look at JST rather than doc
> mode which
> > has an export to html. I am thinking of making this the
> default major
> > mode for notes.
>
> in fact, i do not plan to generate html from my notes... but
> while we are here, could you please tell me what is JST? :)
>
> > You should be using the scheme-editor to do this (see Tools
> -> Scheme
> > Editor) the Bold scheme is under 'Formatted Text' schemes.
>
> i thought so :), but ME is running on a remote machine in a
> mouseless terminal :), so it's quite difficult to use Scheme
> Editor -- without a mouse :).
>
> anyway, thank you for your answer, i probably should do it in
> a local copy of ME...
>
>
> --
> cnp
>
>
>
>
>
> ______________________________________________________________
> ____________
>
> This is an unmoderated list. JASSPA is not responsible for
> the content of
> any material posted to this list.
>
> To unsubscribe, send a mail message to
>
>     mailto:jasspa-unsubscribe@yahoogroups.com
>
> or visit http://groups.yahoo.com/group/jasspa and
> modify your account settings manually.
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>

#1951 From: "cut1n1paste" <cut1n1paste@...>
Date: Mon Sep 11, 2006 6:42 pm
Subject: Re: highlighting, two more question
cut1n1paste
Send Email Send Email
 
Steven, yes, sorry for this my probably quite stupid question :).

> The '\\w' in the hilighting token means any word character

sorry once again, while browsing through docmacro.emf i really
remembered that \w aka [:word:] means any word character, but somehow
i missed that it could be related with language :).

so, now it perfectly works -- and thank you for the hint.

> In your example you have 'а-я',

that was yahoo, who transferred my example to unicode :) -- there were
cyrillic letters a-ya and A-YA.

> Does this make sense?

yes, Steven, thank you once again :)


> > in fact, i do not plan to generate html from my notes... but
> > while we are here, could you please tell me what is JST? :)

i've found that it stands for JASSPA Structured Text, which is a set
of macros to convert structured text into other formats.

however, i can't find it in the help file -- is it there?


also, Steven, while we are here -- could you confirm, that for now
folding does not work in Notes tool? i've tried to apply collapse-all
command there -- but received only [Collapse not available for enf] in
response...


--
cnp

#1952 From: Steven Phillips <bill@...>
Date: Mon Sep 11, 2006 6:51 pm
Subject: Re[2]: column number in the mode? status? line
bill@...
Send Email Send Email
 
Hmmm.. I thought the short answer was yes, add %c to the $mode-line setting.
Try adding the following line to your setup file:

set-variable $mode-line "cG%s%r%u me (%e) - %l:%c %b (%f) "

Warning to slow computer and terminal users - this does increase the frequence
of mode line updates so does have a small effect on performance.

Steve

> Subject: [jasspa] column number in the mode? status? line
> From: Jon Green <jnaught@...>
> Date: Monday, September 11, 2006, 6:34:34 PM
> To: jasspa@yahoogroups.com
> Rick Owen wrote:
>> I'm not sure what the status line at the bottom of the screen is called
>> (mode line?, status line?). It's the line that shows the buffer name,
>> buffer mode, line #, etc.  Is there a way to configure that to show the
>> cursor column on it as well?
>>
>> Thanks,
>> Rick.

> No is the short answer!
> Jon.



> __________________________________________________________________________

> This is an unmoderated list. JASSPA is not responsible for the content of
> any material posted to this list.

> To unsubscribe, send a mail message to

>     mailto:jasspa-unsubscribe@yahoogroups.com

> or visit http://groups.yahoo.com/group/jasspa and
> modify your account settings manually.


>
> Yahoo! Groups Links

#1953 From: Steven Phillips <bill@...>
Date: Mon Sep 11, 2006 6:57 pm
Subject: Re: Re: highlighting, two more question
bill@...
Send Email Send Email
 
>> > in fact, i do not plan to generate html from my notes... but
>> > while we are here, could you please tell me what is JST? :)

> i've found that it stands for JASSPA Structured Text, which is a set
> of macros to convert structured text into other formats.

> however, i can't find it in the help file -- is it there?

Some docs are needed, will try to get something out.

> also, Steven, while we are here -- could you confirm, that for now
> folding does not work in Notes tool? i've tried to apply collapse-all
> command there -- but received only [Collapse not available for enf] in
> response...

Using features that use narrowing is a little dangerous in notes as notes
relies on narrowing to view a note so it's easy to break things.

That said I have a beta version that allows me to set a major mode for each
note (defaulting to JST) and for each mode that supports collapse the keys are
appropriately bound. This should make it into the main release.

Steve

#1954 From: Bruno Sabin <bsabin@...>
Date: Mon Sep 11, 2006 5:39 pm
Subject: Re: column number in the mode? status? line
beulo
Send Email Send Email
 
try adding this to your personal rickowen.emf file:

set-variable $mode-line                 "%s%r%u%k %b %l:%c - %h:%m %D/%
M/%Y (%e) - (%f) "

--
bruno

On Mon, 2006-09-11 at 09:57 -0700, Rick Owen wrote:
> I'm not sure what the status line at the bottom of the screen is
> called (mode line?, status line?). It's the line that shows the buffer
> name, buffer mode, line #, etc.  Is there a way to configure that to
> show the cursor column on it as well?
>
> Thanks,
> Rick.
>
>
>
>
>
>

#1955 From: Rick Owen <rickowen@...>
Date: Mon Sep 11, 2006 7:46 pm
Subject: Re: Re[2]: column number in the mode? status? line
rickowen
Send Email Send Email
 
Hi Steve,
 
I like your short answer better than Jon's :).  I remembered from the foggy recesses of my memory that regular emacs had such a feature.  I tried it and it works fine.  I appreciate the warning about the refresh penalty for terminal users and I've left the mode line alone on the Linux system I have to access via telnet.
 
Thanks,
Rick.

 



----- Original Message ----
From: Steven Phillips <bill@...>
To: Jon Green <jasspa@yahoogroups.com>
Sent: Monday, September 11, 2006 12:51:52 PM
Subject: Re[2]: [jasspa] column number in the mode? status? line

Hmmm.. I thought the short answer was yes, add %c to the $mode-line setting.
Try adding the following line to your setup file:

set-variable $mode-line "cG%s%r%u me (%e) - %l:%c %b (%f) "

Warning to slow computer and terminal users - this does increase the frequence
of mode line updates so does have a small effect on performance.

Steve

> Subject: [jasspa] column number in the mode? status? line
> From: Jon Green <jnaught@samsung. com>
> Date: Monday, September 11, 2006, 6:34:34 PM
> To: jasspa@yahoogroups. com
> Rick Owen wrote:
>> I'm not sure what the status line at the bottom of the screen is called
>> (mode line?, status line?). It's the line that shows the buffer name,
>> buffer mode, line #, etc. Is there a way to configure that to show the
>> cursor column on it as well?
>>
>> Thanks,
>> Rick.

> No is the short answer!
> Jon.

> ____________ _________ _________ _________ _________ _________ _

> This is an unmoderated list. JASSPA is not responsible for the content of
> any material posted to this list.

> To unsubscribe, send a mail message to

> mailto:jasspa-unsubscribe@ yahoogroups. com

> or visit http://groups. yahoo.com/ group/jasspa and
> modify your account settings manually.

>
> Yahoo! Groups Links



#1956 From: Steven Phillips <bill@...>
Date: Mon Sep 11, 2006 10:14 pm
Subject: Re: Re: highlighting, two more question
bill@...
Send Email Send Email
 
cnp and all non-English users of ME...,

Sitting at an English computer with an English keyboard and understanding only
English I find it hard to test and validate the foreign language support in
ME. It is therefore very helpful when someone can check this functionality
for their native language.

Would it be possible to let me know what language & code page you use? and
whether ME's support works okay?

Things to look out for:

- forward-word & backward-word work properly in text files
- hilighting work correctly
- Change case commands like upper-case-word work
- For non-latin based keyboards (cyrillic etc): Correct keyboard character ->
latin character mapping (very useful, when you get a 'Y/N' prompt you should
not need to 'change keyboards' to a western keyboard - see flag 'k' in help
page of set-char-mask)
- Spell checker works

Please reply directly to me rather then clogging up the newsgroup. Thanks,

Steve


> Subject: [jasspa] Re: highlighting, two more question
> From: cut1n1paste <cut1n1paste@...>
> Date: Monday, September 11, 2006, 7:42:45 PM
> To: jasspa@yahoogroups.com
> Steven, yes, sorry for this my probably quite stupid question :).

>> The '\\w' in the hilighting token means any word character

> sorry once again, while browsing through docmacro.emf i really
> remembered that \w aka [:word:] means any word character, but somehow
> i missed that it could be related with language :).

> so, now it perfectly works -- and thank you for the hint.

>> In your example you have 'а-я',

> that was yahoo, who transferred my example to unicode :) -- there were
> cyrillic letters a-ya and A-YA.

>> Does this make sense?

> yes, Steven, thank you once again :)


>> > in fact, i do not plan to generate html from my notes... but
>> > while we are here, could you please tell me what is JST? :)

> i've found that it stands for JASSPA Structured Text, which is a set
> of macros to convert structured text into other formats.

> however, i can't find it in the help file -- is it there?


> also, Steven, while we are here -- could you confirm, that for now
> folding does not work in Notes tool? i've tried to apply collapse-all
> command there -- but received only [Collapse not available for enf] in
> response...

#1957 From: Rick Owen <rickowen@...>
Date: Wed Sep 13, 2006 12:41 pm
Subject: recenter revisited
rickowen
Send Email Send Email
 
Several days ago I asked about a macro that would redraw the screen with the line where te cursor was positioned becoming the top line on the screen.  I think it was Jon (I think) that suggested that I use recenter to accomplish what I wanted. 
 
The command "recenter" is similar to what I want, but what I would really like is a macro that would be invoked like this:
 
n topline
 
Where the current line would would become the top on the screen.  If n is specified, the macro make the current line the nth line from the top of the display.
 
For example
 
 
 
 
aaaaaaaaaaaaaaaaaaaaaa <<< top of display
bbbbbbbbbbbbbbbbbbbbbb
cccccccccccccccccccccc
dddddddddddddddddddddd
eeeeeeeeeeeeeeeeeeeeee
ffffffffffffffffffffff
gggggggggggggggggggggg
hhhhhhhhOhhhhhhhhhhhhh <<< "2 topline" invoked
        ^                  cursor position
 
would yield
 
gggggggggggggggggggggg <<< top of display
hhhhhhhhOhhhhhhhhhhhhh
                ^                                     cursor position
 
This is very similar to recenter except that instead of the midde of the screen, it does it at the top, and it reposition the whole line as the nth line rather than just the cursor.  What would be really sweet would also be a companion macro that does the same thing except it uses the bottom of the display :).
 
I hope this makes sense.
 
Thanks,
Rick.

Messages 1928 - 1957 of 2695   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help