setedit-users Mailing List for SET's Editor, a friendly text editor (Page 38)
Brought to you by:
set
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(48) |
Oct
(53) |
Nov
(28) |
Dec
(5) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(19) |
Feb
(17) |
Mar
(3) |
Apr
(8) |
May
(18) |
Jun
(14) |
Jul
(7) |
Aug
(2) |
Sep
(4) |
Oct
(4) |
Nov
(13) |
Dec
(18) |
2003 |
Jan
(11) |
Feb
(10) |
Mar
(7) |
Apr
(28) |
May
(46) |
Jun
(36) |
Jul
(32) |
Aug
(5) |
Sep
(9) |
Oct
(10) |
Nov
(11) |
Dec
(11) |
2004 |
Jan
(2) |
Feb
(2) |
Mar
(7) |
Apr
(10) |
May
(33) |
Jun
(31) |
Jul
(30) |
Aug
(34) |
Sep
(26) |
Oct
(7) |
Nov
(31) |
Dec
(58) |
2005 |
Jan
(7) |
Feb
(12) |
Mar
(7) |
Apr
(8) |
May
|
Jun
(2) |
Jul
(16) |
Aug
(15) |
Sep
(34) |
Oct
(3) |
Nov
(5) |
Dec
(2) |
2006 |
Jan
|
Feb
(20) |
Mar
|
Apr
(2) |
May
(2) |
Jun
(2) |
Jul
(5) |
Aug
(21) |
Sep
(13) |
Oct
(15) |
Nov
(23) |
Dec
(27) |
2007 |
Jan
(19) |
Feb
(3) |
Mar
(2) |
Apr
(3) |
May
(1) |
Jun
(3) |
Jul
(7) |
Aug
(2) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
(1) |
2008 |
Jan
|
Feb
(1) |
Mar
|
Apr
(11) |
May
(7) |
Jun
(10) |
Jul
(15) |
Aug
(5) |
Sep
(9) |
Oct
(1) |
Nov
(16) |
Dec
(2) |
2009 |
Jan
(26) |
Feb
(3) |
Mar
(19) |
Apr
(22) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: salvador <sal...@in...> - 2001-10-15 12:57:21
|
"Thiago F.G. Albuquerque" wrote: > I have something to add about this. It happened again after I send this report. But this time it > had nothing to do with being root or at the home directory. > > I was logged as myself and I was in a "regular" directory (I mean, not home), with some files, a > desktop and a project file. I was doing something at the shell, then I started the editor and a > message box poped up saying "Wrong desktop file". Are you using hidden desktop files? What was the owner of the desktop files in this directory? you or root? > Then I exited the editor and started to > investigate to see what happened. I found out that the desktop and the project files in the > current directory and the desktop file in my home directory were truncated to 0 bytes. It can happend only if the editor crashed while saving the desktop file. I'll suggest you using the last version of the editor, it backups the central desktop file before writing a new one. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |
From: Thiago F.G. A. <tf...@za...> - 2001-10-13 19:51:47
|
I have something to add about this. It happened again after I send this report. But this time it had nothing to do with being root or at the home directory. I was logged as myself and I was in a "regular" directory (I mean, not home), with some files, a desktop and a project file. I was doing something at the shell, then I started the editor and a message box poped up saying "Wrong desktop file". Then I exited the editor and started to investigate to see what happened. I found out that the desktop and the project files in the current directory and the desktop file in my home directory were truncated to 0 bytes. I am absolutely clueless as to what may have caused this. It doesn't happen everytime, but it happens once in a while. It happened twice. Thiago On 11/10/01 17:38:41, salvador wrote: >Thiago wrote: >> >> When I run setedit as root, my options are overwriten (Don't make >backups, Don't save desktop >> >> files, ...) They go back to the defaults. >> > >> >Sorry but I don't understand it, please clarify. The user `root' have >their own settings. >> >> Ok. Here's exactly what I did. I was logged as 'thiago': >> >> su root >> e >> exit >> >> After this, the options of user 'thiago' go back to the defaults. > >I couldn't reproduce it, but I have an idea of what could happend. >I think your user have a central desktop file and it was stored in ~/ Yes, this is correct. >And I think your root isn't using a central desktop file so you used su >when you were in /home/thiago. Then the root loaded the default desktop >file for Thiago and at exit saved it as root. So then you tried to run >the editor as thiago, as the file was owned by root and was read-only the >editor said "Wrong desktop file", and then you needed to delete the desktop >file losing your configuration. >That's the only situation I could generate, and is fixed in 0.4.49 because >now the default desktop file is stored in ~/.setedit avoiding such a mess. |
From: Thiago F.G. A. <tf...@za...> - 2001-10-13 19:51:43
|
Some comments: 1) The instalation script deletes setedit's documentation. 2) I don't know, but it seems that some files are duplicated. For instance, infview.txt.gz is both in doc/infview and in share/doc/infview; infview.info.gz is both in info and share/info. Actually, all the docs are duplicated inside share/. Thiago |
From: Martijn V. <m.v...@hc...> - 2001-10-12 13:55:47
|
>A loooong time agoVersteegh wrote: > >> Third a question. >> >> Would it be possible to create vertical markers lines >> (like the column cursor for example) at certain >> (settable) columns. This would be very handy for >> programming languages (like fortran) where the >> column position is important. In fortran for example >> it would be very handy if it were possible to >> put such a marker at column 7 and 72. > >Well, I guess you already solved your Fortran needs, but I added the column >markers and the Fortran syntax highlight. I tested enabling it only for >fortran (using the global default options based on the syntax highlight) >and worked ok. >It will be available in 0.4.50. Ah, My father will like that ;-) -- Martijn Versteegh |
From: salvador <sal...@in...> - 2001-10-12 13:28:48
|
Hi All! I updated the CVS to v0.4.50. It will become the next stable release, most probably named v0.4.51. For this reason I want to fix any remaining bugs. To compile it you need TV 1.1.3, I put a copy in the extra section because Geocities is becoming useless. I didn't make a tarball of 0.4.50 because it is evolving but if somebody is wanting to test the editor and needs a tar ball or zip file tell me. I updated the readme.1st (distrib/distrib1.txt file in CVS) with the changes since the last stable release, they are too much (about 88 new things and 64 fixes!). So I think a new stable release is needed. It will also let me go for some experimental stuff like X version and goodies like ctags browser. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |
From: salvador <sal...@in...> - 2001-10-11 20:35:57
|
"Thiago F.G. Albuquerque" <tf...@za...> wrote: > Why I can't set "max. closed to remmember" = 0? Done, now you can set it to 0 and also disable it with another setting. > Man page viewer > =============== > Doesn't close with ESC. Done, now ESC closes it. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |
From: salvador <sal...@in...> - 2001-10-11 20:35:20
|
Thiago wrote: > >> When I run setedit as root, my options are overwriten (Don't make backups, Don't save desktop > >> files, ...) They go back to the defaults. > > > >Sorry but I don't understand it, please clarify. The user `root' have their own settings. > > Ok. Here's exactly what I did. I was logged as 'thiago': > > su root > e > exit > > After this, the options of user 'thiago' go back to the defaults. I couldn't reproduce it, but I have an idea of what could happend. I think your user have a central desktop file and it was stored in ~/ And I think your root isn't using a central desktop file so you used su when you were in /home/thiago. Then the root loaded the default desktop file for Thiago and at exit saved it as root.root. So then you tried to run the editor as thiago, as the file was owned by root and was read-only the editor said "Wrong desktop file", and then you needed to delete the desktop file losing your configuration. That's the only situation I could generate, and is fixed in 0.4.49 because now the default desktop file is stored in ~/.setedit avoiding such a mess. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |
From: salvador <sal...@in...> - 2001-10-11 20:34:26
|
"Thiago F.G. Albuquerque" wrote: > Today I would like to talk about some sLisp-related stuff. > > 1)In Emacs there is this "scratch buffer", where you can type Lisp expressions and then you > press C-j and it evaluates it on the fly. It would be nice if SETEDIT had something like this. > It would be great to debug macros. I added a couple of commands (found in the Macro menu) one executes the selected text as an sLisp macro and the other asks for the code to run using a simple dialog. They passed a very simple test but I think they'll need some adjustments so don't get surprised if they behave funny. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |
From: salvador <sal...@in...> - 2001-10-11 20:33:19
|
A loooong time agoVersteegh wrote: > Third a question. > > Would it be possible to create vertical markers lines > (like the column cursor for example) at certain > (settable) columns. This would be very handy for > programming languages (like fortran) where the > column position is important. In fortran for example > it would be very handy if it were possible to > put such a marker at column 7 and 72. Well, I guess you already solved your Fortran needs, but I added the column markers and the Fortran syntax highlight. I tested enabling it only for fortran (using the global default options based on the syntax highlight) and worked ok. It will be available in 0.4.50. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |
From: salvador <sal...@in...> - 2001-10-11 20:28:29
|
Grzegorz wrote: > > You can do it with sLisp, you have GetSelection and you have RunProgram. > > Hmmm... I somehow doubt it. First, if I use the "Test RunProgram" slisp > example and type "cat /home/gregorio/macros.slp", I see a few lines in the > message window about running commands but nothing happens. Where's the > output of cat? Fixed, it was forking. > Second, you cannot pipe GetSelection to the RunProgram, which is necessary, > because I don't see a way to create temporary files in slisp (though I am > new at this). My proposed example tries to run Allegro's textconv tool, > which converts stdin to stdout: I added a second (optional) parameter to RunProgramRedir. It should be an string containing the text to send to the external program. I tested it with "recode ISO8859-1..html" and worked really nice. I added an example to macros.slp. I also created a MessageBox command, in the example is used to indicate to the user that some text must be selected first (the text that we'll send to the external filter). SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |
From: Grzegorz A. H. <gr...@te...> - 2001-10-06 10:05:57
|
Hi. The option "Identation" in the global preferences box, which is set by default to 4 is not saved when I change it. I always replace it with some numer, exit, run setedit and it keeps being 4, no matter if I save a project on my .setedit/ dir with user preferences. Besides, in the spanish version the hot key 'd' clashes with the "apply all" button. -- Grzegorz Adam Hankiewicz gr...@te... http://gradha.infierno.org |
From: salvador <sal...@in...> - 2001-10-02 16:00:05
|
Hi All! I wrote a simple conio replacement that works on top of Allegro. It is not finished but is quite functional. I'll support a full implementation of the conio library only if I see interest on it. If I don't get feedback and help I develope only the part I need (which is almost finished). Attached is the README file. The sources are available from Source Forge I also uploaded a tarball with the sources. All is available from the page of the setedit project: http://sourceforge.net/projects/setedit/ The tarball is in the extra package named as "AlCon 0.0.1" release. The CVS package is "AlCon" SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |
From: salvador <sal...@in...> - 2001-10-01 20:35:32
|
Hi All! I updated the CVS so v0.4.49 is there. A tar ball for Linux is also available and Debian Potato experimental packages are available (including InfView 0.2.7). TV 1.1.2 was released and is needed to compile v0.4.49. Note: That isn't a big release and it doesn't fix all the opened bugs, but is there for people that can't wait a couple of weeks or needs to test anything named in the change.log. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |
From: salvador <sal...@in...> - 2001-10-01 12:42:58
|
Martijn Versteegh wrote: > > Just to say that I was able to generate an experimental version of Turbo > >Vision on top of Allegro. > Ha! this is something I tried to do about 2 years ago, but I got tangled up too much > in turbovision ;-). The problem was I didn't (want to) know anything about turbovision, I > just wanted a graphical X-native setedit. I must admit the easiest part was the TV part ;-), the only problem was that debugging X-Allegro applications seems to be really tricky, but it was easy. What I did is a library that provides most of the conio API plus some functions that handles information in the way that TV likes (screen write passing a buffer with chars/attrs as in the video memory and my keyboard codes that we use in TV currently) After it things were really easy. Now the big problem is that currently low level stuff is a real mess and incorporating it in a clean way is really hard. > > I did the experiment under X in a Linux box. > > It means I got a setedit working as a native X application! > > The good thing is that Allegro supports Linux console (fbdev, SVGALib, ggi > >and direct access), X (Linux, Solaris and Irix tested), DOS, Win32 and ports > >to BeOS, QNX and Mac OS are under work. > > Does that mean you could theoretically get all keys right in X? Currently the best way to get all the keyboard codes is by using a patched Eterm. I put the sources of Eterm 0.8.10, patches and a Debian Potato package in Source Forge. Allegro is working nice but it can't handle any key used for accents, I use them and I guess you also have it. I'm trying to clarify it in the Allegro mailing list. > Please release it quickly, I'd love to experiment with this one ;-) Well, as it will generate problems and conflicts in TV I'm releasing TV 1.1.2 *without* it today and start trying to incorporate it in TV in the next weeks. I'm really interested in Allegro because it provides a lot of interesting targets (Mac OS, BeOS and QNX as examples). But I have code from JASC that provides native X support. Lamentably JASC changed too much things and I preffer to incorporate things more slowly. My next step will be to release the core of the port: AlCon. AlCon is the conio like core that runs on top of Allegro. All the limitations and bugs that I saw can be catched with it, so that's a good start for experiments. The library could also be of interest for people wanting to port old conio applications. Today I'll be really busy releasing TV 1.1.2 and synchronizing my CVS with S.F. CVS (I have around 300 commits to send!) But I'll announce things in the list (and that's why I'm sending a Cc to the list). SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |
From: Grzegorz A. H. <gr...@te...> - 2001-09-28 21:54:48
|
On Fri, Sep 28, 2001 at 06:42:29PM -0300, salvador wrote: > The good thing is that Allegro supports Linux console (fbdev, SVGALib, ggi > and direct access), Not to burst the bubble, but Allegro ggi support was dropped in 3.9.36. Hmmm... so using Allegro to display characters and getting input... hmmm... so Allegro supports unicode... hmmm.... :) -- Grzegorz Adam Hankiewicz gr...@te... http://gradha.infierno.org |
From: salvador <sal...@in...> - 2001-09-28 21:38:34
|
Hi All! Just to say that I was able to generate an experimental version of Turbo Vision on top of Allegro. I did the experiment under X in a Linux box. It means I got a setedit working as a native X application! The good thing is that Allegro supports Linux console (fbdev, SVGALib, ggi and direct access), X (Linux, Solaris and Irix tested), DOS, Win32 and ports to BeOS, QNX and Mac OS are under work. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |
From: Grzegorz A. H. <gr...@te...> - 2001-09-26 22:21:00
|
On Wed, Sep 26, 2001 at 04:54:29PM -0300, salvador wrote: > Do you know about simple UTF8<->16 bits conversion routines? > Perhaps Allegro code ... Ah, you read my mind. The nice thing is that you can rip the code to avoid external dependencies. But anyway, the guys from unicode should have already cared for that, yes, you can do a search for "unicode lib" at freshmeat and pick one of the available libs.... wow, so there's a svgalib browser :-) > > Hmmm... I somehow doubt it. First, if I use the "Test RunProgram" slisp > > example and type "cat /home/gregorio/macros.slp", I see a few lines in the > > message window about running commands but nothing happens. Where's the > > output of cat? > > I must check, perhaps something is broken. Or my configuration, you know, I love playing with fire. > You shouldn't edit files that aren't really supported by your code page. Ah, but the problem is I might have to, and doing so I wouldn't like to break the work of others. > But I can do the same you say ;-), what's the exact format? \u224 == á? Its whatever you prefer. The \unumbercode is used internally by python. Well, in fact, they don't put the 'u', so the string "éás" is converted (or represented internally) like "\351\341s". I think that putting \unumber or \unicode_number is better for the human going to edit the text afterwards. Yes, you could just add an option field in the configuration to set this "magic" string and everybody would be happy. -- Grzegorz Adam Hankiewicz gr...@te... http://gradha.infierno.org |
From: salvador <sal...@in...> - 2001-09-26 19:52:00
|
Grzegorz Adam Hankiewicz wrote: > On Tue, Sep 25, 2001 at 03:55:29PM -0300, salvador wrote: > > What kind of recodes? you mean like PC850->ISO-8859-1? > > Perhaps an sLisp command (RecodeBuffer from to)? > > I would use it if there was utf8. Ok, will see. Do you know about simple UTF8<->16 bits conversion routines? Perhaps Allegro code ... > BTW, what's that lemur thing? A nice project Enlisniss did for the editor, it can be used to look-up fu= nction prototypes or choose the member of a structure "on the fly", it uses gcc = to preprocess the code. Isn't ultra fast but is usable. > > You can do it with sLisp, you have GetSelection and you have RunProgr= am. > > Hmmm... I somehow doubt it. First, if I use the "Test RunProgram" slisp= > example and type "cat /home/gregorio/macros.slp", I see a few lines in = the > message window about running commands but nothing happens. Where's the > output of cat? I must check, perhaps something is broken. > Second, you cannot pipe GetSelection to the RunProgram, which is necess= ary, > because I don't see a way to create temporary files in slisp (though I = am > new at this). My proposed example tries to run Allegro's textconv tool,= > which converts stdin to stdout: > > (defmacro '_Prueba' > (eval > (InsertText (RunProgramRedir (+ "textconv -ia -ou " (GetSelection))))= > ) > ) > > Now, the editor freezes and if I run ps ux I see that GetSelection is g= iven > as an additional parameter to textconv, which is not desired. AFAICS yo= u > cannot create a temporary file, put GetSelection in it, run the command= , > get the text from the output file, delete both temporary files and repl= ace > the selection in the editor with the new output. Meaning that I am stuc= k with > the external utf8 wrapper. Will see. > > > Remember SET when I suggested about a combo-key which would word wr= ap > > > some lines of text, usually in email posts like this one? > > > > Maybe, but please first check the available options. I can add more, = but only > > if necesary. > > I only see this wordwrap option which works when I type. Is there any o= ther > available option to reformat a selection in the editor? Nope. > > Now another detail: > > I have in my todo the following: Add import/export in UNICODE/UTF-8 f= ormat. So > > you could import an UTF-8 file and then export it to UTF-8, not as co= mfortable > > as a transparent Load/Save but quite useful I think. > > Maybe you could automate the import/export when the filename contains '= =2Eutf8', > something quite standard to use. Anyway, what would you do with the non= -viewable > characters? That's why I wanted to pipe selection to an external progra= m, this > program would transform such characters to "\unumber" string, so that a= > reconversion would recover them. You shouldn't edit files that aren't really supported by your code page. But I can do the same you say ;-), what's the exact format? \u224 =3D=3D = =E1? > PD: Resist the temptation to send me copies of your mailing list answer= s :) Ok. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |
From: Grzegorz A. H. <gr...@te...> - 2001-09-26 17:59:18
|
On Tue, Sep 25, 2001 at 03:55:29PM -0300, salvador wrote: > What kind of recodes? you mean like PC850->ISO-8859-1? > Perhaps an sLisp command (RecodeBuffer from to)? I would use it if there was utf8. BTW, what's that lemur thing? > You can do it with sLisp, you have GetSelection and you have RunProgram. Hmmm... I somehow doubt it. First, if I use the "Test RunProgram" slisp example and type "cat /home/gregorio/macros.slp", I see a few lines in the message window about running commands but nothing happens. Where's the output of cat? Second, you cannot pipe GetSelection to the RunProgram, which is necessary, because I don't see a way to create temporary files in slisp (though I am new at this). My proposed example tries to run Allegro's textconv tool, which converts stdin to stdout: (defmacro '_Prueba' (eval (InsertText (RunProgramRedir (+ "textconv -ia -ou " (GetSelection)))) ) ) Now, the editor freezes and if I run ps ux I see that GetSelection is given as an additional parameter to textconv, which is not desired. AFAICS you cannot create a temporary file, put GetSelection in it, run the command, get the text from the output file, delete both temporary files and replace the selection in the editor with the new output. Meaning that I am stuck with the external utf8 wrapper. > > Remember SET when I suggested about a combo-key which would word wrap > > some lines of text, usually in email posts like this one? > > Maybe, but please first check the available options. I can add more, but only > if necesary. I only see this wordwrap option which works when I type. Is there any other available option to reformat a selection in the editor? > Now another detail: > I have in my todo the following: Add import/export in UNICODE/UTF-8 format. So > you could import an UTF-8 file and then export it to UTF-8, not as comfortable > as a transparent Load/Save but quite useful I think. Maybe you could automate the import/export when the filename contains '.utf8', something quite standard to use. Anyway, what would you do with the non-viewable characters? That's why I wanted to pipe selection to an external program, this program would transform such characters to "\unumber" string, so that a reconversion would recover them. PD: Resist the temptation to send me copies of your mailing list answers :) -- Grzegorz Adam Hankiewicz gr...@te... http://gradha.infierno.org |
From: Thiago F.G. A. <tf...@za...> - 2001-09-26 16:08:59
|
On 25/09/01 09:22:32, salvador wrote: >"Thiago F.G. Albuquerque" wrote: > >> On 24/09/01 09:50:18, salvador wrote: >> >> >> let >> > >> >I think what you wrote is currently: >> >(setv "str" (GetSelection)) >> >> There is a difference: the variables created by 'let' are local. They only exist inside the let >> expression. The variables created by setv are all global, right? I don't know, setv solves my >> problem, but I think it would be nice to have local variables in the language too. > >Sure, but not a high priority thing ;-) Yes, of course. >> The alternatives are mutualy exclusive. If one of the tests succeed, it executes the >> corresponding action and jumps out of the cond. It doesn't go trough any of the other tests. > >I think that's the same to use: (if (test1) (action1) (if (test2) (action2) (...))) >Like in C: if (test1) {action1} else {if (test2) {action2} else {...}} You're right. Thanks for pointing it out. >> 1) defun > >What about it? Nothing, it would be good to have it. Someone might need it in the future. But it's not high priority either. Thiago |
From: salvador <sal...@in...> - 2001-09-25 18:52:50
|
Grzegorz Adam Hankiewicz wrote: > I've seen through the poll at sourceforge that unicode support or something > similar is 'brewing' in the mind of SET. I have however some more urgent > needs. At the moment I have some plain text files in utf8 which I would > like to edit. The problem is really at the storege point, because all of > their characters are really in my viewing codepage. True, that's a common problem when you use libraries like Allegro. > So I could use a script similar to the 'e' alias which before converting > the file converts it to latin1, and when I exit it's converted back to > utf8. It's an ugly hack, and may work for some files. There are may > problems, like what happens if I try to open another file inside the > editor, what happens if the editor crashes (the original is left in > latin), what if the file has non-viewable characters, etc, etc. > > I then figured out that it would be nicer to use the manual "recode" > option, which gives me more freedom, and so will I do (for now). But I > also found out that this option is not very customizable, there are a > lot of conversions I do frequently and I would love to add kind of > "shortcuts" to this menu, or even better, trigger them with the macro > menu. What kind of recodes? you mean like PC850->ISO-8859-1? Perhaps an sLisp command (RecodeBuffer from to)? > Also, sometimes I would prefer to feed the selected text to an external > program, because I might be doing a character conversion from utf8->latin > which leaves the non-viewable utf characters as html encodings so that I > can convert back to utf8 without loosing characters, and I can customize > much better the conversion through the external program without > requesting more features to the editor :) You can do it with sLisp, you have GetSelection and you have RunProgram. In fact Lemur works by selecting the word under cursor, passing it to an external exe that calls gcc to preprocess the code and returns a list to choose. > Remember SET when I suggested about a combo-key which would word wrap > some lines of text, usually in email posts like this one? Well, you could > use the "feed lines to external program" to solve this, and people could > provide a program doing the formatting, in fact, the basic formatting > could be done with the GNU fmt program. Since only text has to be passed > from setedit to the extension, you could do this with a read/write pipe, > and detect failures with return codes. Maybe, but please first check the available options. I can add more, but only if necesary. > Another point, why not add the "decode block quoted printable" to the > "recode" option? Sometimes it may come handy to be able to encode it back > to the mail form. Something similar could be done with the "html accents", > which would reduce the length of the Tools menu. The answer is quite simple: the dialog offers recodings that are 1 to 1, one character at the input will generate one character at the output. HTML and quoted printable aren't different. The difference is huge. In the first case the editor doesn't need to modify the size of the buffer or recompute any lines information, but the second is a major change. Of course I could mix both in the list and separate them internally, but it means adding more code and information to the lists. I'll put this join in the todo, but with low priority. About the "encode quoted printable", looks like a needed option. Now another detail: I have in my todo the following: Add import/export in UNICODE/UTF-8 format. So you could import an UTF-8 file and then export it to UTF-8, not as comfortable as a transparent Load/Save but quite useful I think. > PD: Resist the temptation to send me copies of your mailing list answers :) This time you are saved, but I can promess I'll remmeber it forever ;-) SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |
From: Grzegorz A. H. <gr...@te...> - 2001-09-25 18:03:02
|
Hi there. I've seen through the poll at sourceforge that unicode support or something similar is 'brewing' in the mind of SET. I have however some more urgent needs. At the moment I have some plain text files in utf8 which I would like to edit. The problem is really at the storege point, because all of their characters are really in my viewing codepage. So I could use a script similar to the 'e' alias which before converting the file converts it to latin1, and when I exit it's converted back to utf8. It's an ugly hack, and may work for some files. There are may problems, like what happens if I try to open another file inside the editor, what happens if the editor crashes (the original is left in latin), what if the file has non-viewable characters, etc, etc. I then figured out that it would be nicer to use the manual "recode" option, which gives me more freedom, and so will I do (for now). But I also found out that this option is not very customizable, there are a lot of conversions I do frequently and I would love to add kind of "shortcuts" to this menu, or even better, trigger them with the macro menu. Also, sometimes I would prefer to feed the selected text to an external program, because I might be doing a character conversion from utf8->latin which leaves the non-viewable utf characters as html encodings so that I can convert back to utf8 without loosing characters, and I can customize much better the conversion through the external program without requesting more features to the editor :) Remember SET when I suggested about a combo-key which would word wrap some lines of text, usually in email posts like this one? Well, you could use the "feed lines to external program" to solve this, and people could provide a program doing the formatting, in fact, the basic formatting could be done with the GNU fmt program. Since only text has to be passed from setedit to the extension, you could do this with a read/write pipe, and detect failures with return codes. Another point, why not add the "decode block quoted printable" to the "recode" option? Sometimes it may come handy to be able to encode it back to the mail form. Something similar could be done with the "html accents", which would reduce the length of the Tools menu. PD: Resist the temptation to send me copies of your mailing list answers :) -- Grzegorz Adam Hankiewicz gr...@te... http://gradha.infierno.org |
From: salvador <sal...@in...> - 2001-09-25 12:34:38
|
Hi Thiago: On Fri, 14 Sep 2001 12:45:29 -0300 you wrote: > This reminds me of something I saw in the Zed editor. It uses a text file for the key bindings. > To edit this file, the editor has a comand that switches the editor to "code mode". In this > mode, for every key you type, it inserts que corresponding code string (escape sequence) > generated by the key. To exit code mode, you press ESC twice (or something like this, I don't > remeber). Now I added: Tool&Ops|Insert key name It pop-ups the same small dialog you see when configuring the keyboard, after you press a key their name is inserted at cursor position. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |
From: salvador <sal...@in...> - 2001-09-25 12:33:32
|
Hi Thiago: On Tue, 21 Aug 2001 11:08:01 -0300 you wrote: > I have two things to say about Infview. > > 1) bug report: > > File|Load doesn't work if there is no window open. It doesn't have to be a file; if the About > window is open, it works. > > I am using version 0.2.6 for DOS. I checked and that's fixed in the CVS. The InfView generated by the sources of setedit 0.4.47 solves it. Lamentably the version wasn't incremented. Anyways look for announcements. Here is the change.log for it: Revision 1.297 2000/02/03 01:19:08 set * Fixed: [InfView] Now "Open InfView" works even if no InfView window is opened. Reported by Ivan. > 2) Add something like this to the documentation: > > By default, Infview looks for the the file supplied in the comand line in your /info directory > ($DJDIR/info for djgpp users). If you want to view a file in the current directory, you have to > prefix the filename with ".\" Added to the command line and manpage helps. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |
From: salvador <sal...@in...> - 2001-09-25 12:32:39
|
Hallo Martijn: On Wed, 12 Sep 2001 00:28:56 +0200 you wrote: > I'm greatfull you added the use-indent-size tab option I have been > nagging you about ;-), but there's one small problem: > The value of the option is not preserved between runs, I found it. I also forgot the "Dont purge spaces options", now 0.4.48 stores it in the desktop file. Look for announces about CVS snap-shots. > and neither does setting it in the global options work. I think here you felt victim of a very common issue: The editor tries really hard to remmember what settings you use for each file. The most common mechanism are through the closed files and the project items. This information have precedence over the global options. BTW: Newer versions have a very powerful mechanism to set up the which global options you want to disable/enable for each syntax highlight. Usually I enable Intelligent indent only for C and Perl, that's just an example. I tried with files the editor didn't know anything about and the settings are correctly transferred (as the code pretends ;-) > My guess is that you forget to save it in the dst file. Correct. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |