Search found 183 matches
- Fri Feb 17, 2017 6:29 pm
- Forum: newLISP and the O.S.
- Topic: exec in newlisp 10.7.1/Windows
- Replies: 1
- Views: 4317
exec in newlisp 10.7.1/Windows
Seems like exec in newlisp 10.7.1/Windows opens it's second argument in text (as opposed to binary) mode. Test: (exec "od -b" "hello\r\nworld\r\n") Output with newlisp 10.6.2 0000000 150 145 154 154 157 015 012 167 157 162 154 144 015 012 Output with newlisp 10.7.1 0000000 150 145 154 154 157 015 01...
- Sun Jun 02, 2013 7:36 pm
- Forum: newLISP newS
- Topic: newlisp.vim 1.37
- Replies: 5
- Views: 13145
newlisp.vim 1.37
I have updated my newlisp.vim syntax highlighter; new in this version: * all the changes made by Lutz during the last two years are adopted. * some typos introduced by Lutz are removed (some vimscript keywords was erroneously recognized as newlisp functions because of a silly formatting error). * $c...
- Wed May 22, 2013 1:30 am
- Forum: newLISP newS
- Topic: newLISP Stable Release v.10.5.0
- Replies: 10
- Views: 30141
Re: newLISP Stable Release v.10.5.0
Aha, now it works. (checking other everyday scripts collected over the years) Seems OK. Thank you!
- Tue May 21, 2013 10:35 pm
- Forum: newLISP newS
- Topic: newLISP Stable Release v.10.5.0
- Replies: 10
- Views: 30141
Re: newLISP Stable Release v.10.5.0
The exec behaviour in win32 was changed somewhere between 10.4.5 and 10.5.0 (sorry, I haven't followed the development releases). In 10.5.0, it replaces "\n" line endings with "\r\n" in the executed process stdin, in all previous versions it wasn't (my pet script I found broken by this is dated back...
- Sat Nov 12, 2011 8:37 pm
- Forum: newLISP newS
- Topic: newLISP development release v.10.3.5
- Replies: 3
- Views: 3578
Re: newLISP development release v.10.3.5
That's good. In fact I haven't upgraded from 10.3.2 because of previous behavior (I strongly dislike system directories pollution). Now I'll try to be up to the current release again. :-)Lutz wrote:So now we are back where it always has been, and I think it is more convenient for most users.
- Fri Apr 15, 2011 7:18 am
- Forum: newLISP newS
- Topic: Joe editor lisp.jsf update for newlisp 10.3.0
- Replies: 2
- Views: 3582
Re: Joe editor lisp.jsf update for newlisp 10.3.0
Hmm... I've also forgotten to mark read-buffer as deprecated in my newlisp.vim highliter. But, reading the manual, I conclude that read-buffer was deprecated together with write-buffer. I believe that either both should be marked or both should not. Or do I misunderstand something?
- Fri Apr 15, 2011 7:11 am
- Forum: newLISP newS
- Topic: newlisp.vim 1.35
- Replies: 5
- Views: 6001
newlisp.vim 1.35
I've just realized that I haven't visited this forum for a half-year now. I am still using newLISP, just feeling less social about it. ;-) And now is the time for a new version of the syntax highlighter for the Vim text editor. This version is highly experimental, testing and feedback is highly appr...
- Thu Oct 07, 2010 7:46 pm
- Forum: newLISP newS
- Topic: newlisp.vim 1.32 (and 1.33!)
- Replies: 5
- Views: 4455
Re: newlisp.vim 1.32
As planned, release 1.33, got in sync with newLISP 10.2.16. In particular: * functions 'date-list', 'date-parse' and 'net-ipv' are added, * function 'parse-date' is marked as deprecated, * functions 'error-number' and 'error-text' are marked as obsolete, BTW, 'error-number' is still mentioned in Cod...
- Thu Oct 07, 2010 2:53 am
- Forum: newLISP newS
- Topic: newlisp.vim 1.32 (and 1.33!)
- Replies: 5
- Views: 4455
newlisp.vim 1.32 (and 1.33!)
Another release of the newLISP syntax highlighter for the Vim text editor. A subtle bug was fixed: an unbalanced parentheses inside the font highlighting (italic or monospace) inside documenting comments was breaking the Vim built-in paren matching. Example: ;; Unbalanced paren ( was OK, but ;; Unba...
- Thu Oct 07, 2010 1:08 am
- Forum: Anything else we might add?
- Topic: Funny regexp: /^1?$|^(11+?)\1+$/
- Replies: 2
- Views: 3243
Funny regexp: /^1?$|^(11+?)\1+$/
I have found this funny regexp here, guess what it matches? Or check it with newLISP:
Astonishing! ;-)
Code: Select all
(for (i 1 100)
(unless (regex {^1?$|^(11+?)\1+$} (dup "1" i))
(print i " ")))
- Thu Sep 23, 2010 1:42 pm
- Forum: newLISP and the O.S.
- Topic: Benchmarking newLISP
- Replies: 28
- Views: 27223
Re: Benchmarking newLISP
I upgraded over the summer... I am in upgrade just now! This is probably the very last message I write from the my old box. So... 3.25 ; Windows XP at Intel Pentium III, 800 MHz - Cyril And the result from the my new box will be in a few hours! ;-) Update: 0.55 ; Windows XP at AMD Phenom II X2 545,...
- Mon Sep 13, 2010 3:11 pm
- Forum: newLISP and the O.S.
- Topic: [SOLVED] Run an executable without opening console (Win32)
- Replies: 5
- Views: 8070
Re: [SOLVED] Run an executable without opening console (Win32)
In the next version an addtional "process creation flags" -parameter can be used on Windows versions of newLISP. My problem was not wrong parameters, but the return value. What is the "pid" returned, and how can one use it? In Linux, it can be passed to wait-pid , but in Win32 there is no such func...
- Mon Sep 13, 2010 1:37 pm
- Forum: Anything else we might add?
- Topic: Programmer's Day
- Replies: 4
- Views: 3737
Re: Programmer's Day
Thanks, Lutz! I'm going to celebrate, now! (Hm... Picking my newlisp T-shirt... It's a bit cold outside, but... OK, I'll wear it, nevertheless! :-)
- Sun Sep 12, 2010 9:05 pm
- Forum: newLISP and the O.S.
- Topic: [SOLVED] Run an executable without opening console (Win32)
- Replies: 5
- Views: 8070
Re: Q: Run an executable without opening console (Win32)
Thanks, HPW! The solutions from the thread you mentioned aren't applicable to my problem directly, but they have inspired me to read the source, and to write some newlisp code based on them. Here it is: (import "kernel32" "CreateProcessA") (import "kernel32" "WaitForSingleObject") (import "kernel32"...
- Tue Sep 07, 2010 6:58 am
- Forum: newLISP and the O.S.
- Topic: [SOLVED] Run an executable without opening console (Win32)
- Replies: 5
- Views: 8070
[SOLVED] Run an executable without opening console (Win32)
Is it possible to run an external program (ex. notepad.exe) from newlisp on Win32, not opening a console window, and wait for it to finish? Both (! "notepad.exe") and (exec "notepad.exe") run cmd.exe first and therefore create a console window. On the other hand, (process "notepad.exe") runs notepad...
- Thu Jun 10, 2010 8:01 pm
- Forum: newLISP and the O.S.
- Topic: Win32 API demo (true event loop)
- Replies: 2
- Views: 3072
Win32 API demo (true event loop)
I've tried to write the "complete" Windows application in newLISP, just as a demo, or proof of concept. I mean, with an event loop and such. The hard part is, that newlisp.exe is already a console application, and you cannot establish an event loop in console window (in fact you can, but the results...
- Wed May 26, 2010 2:41 pm
- Forum: Anything else we might add?
- Topic: This forum logo
- Replies: 3
- Views: 3413
This forum logo
That is silly, but I have always interpreted this forum logo as "a fly with a flyswatter".
Not to insult anybody, just a funny self-observation. ;-)
Not to insult anybody, just a funny self-observation. ;-)
- Wed May 19, 2010 6:46 pm
- Forum: newLISP newS
- Topic: newlisp.vim 1.31
- Replies: 10
- Views: 6563
Re: newlisp.vim 1.31
The Vim logic of plugin search is a bit complex. The general answer is "the syntax subdirectory of any of the directories listed in 'runtimepath' option". But this is usually a very long list, so the short answer is: /usr/share/vim/vimfiles/syntax for system-wide settings, or ~/.vim/syntax for your ...
- Wed May 19, 2010 11:21 am
- Forum: newLISP newS
- Topic: newlisp.vim 1.31
- Replies: 10
- Views: 6563
Re: newlisp.vim 1.31
I notice that curly braces {} and [text][/text] blocks aren't highlighted as strings. And if a quote " char is inside {} like {}, it treats the " as the start of a string, which can be annoying. It does handle strings, including [text]...[/text] and {braces {even nested}} , see example here . And I...
- Sun May 09, 2010 10:33 pm
- Forum: newLISP newS
- Topic: newlisp.vim 1.31
- Replies: 10
- Views: 6563
newlisp.vim 1.31
New release of newlisp.vim syntax highlighter. * Multiple patches (mostly new function names) by Lutz are included, * Some typos introduced by Lutz are removed, ;-) * Minor code cleanup. This release is numbered 1.31, because 1.28 to 1.30 was used by Lutz. I believe it is ready for newlisp v10.3. Do...
- Sun May 02, 2010 12:03 pm
- Forum: newLISP and the O.S.
- Topic: get-url in Windows, timeout always long
- Replies: 2
- Views: 2763
Re: get-url in Windows, timeout always long
Oh, I see now, thanks! Yes, the old versions waits for 20+ seconds on closed port on any other host but local. But some my scripts have to work with localhost. ;-) So, I'll wait for a fix, and roll back to 10.2.1 meantime.
- Sat May 01, 2010 5:17 pm
- Forum: newLISP and the O.S.
- Topic: get-url in Windows, timeout always long
- Replies: 2
- Views: 2763
get-url in Windows, timeout always long
On Windows XP, somewhere between 10.2.1 and 10.2.4, attempt to get-url from a closed port became always waiting for 10 seconds, with no regard to time-out argument. newLISP v.10.2.1 on Win32 IPv4, execute 'newlisp -h' for more info. > (list (date) (get-url "http://localhost:8888") (date)) ("Sat May ...
- Sat Apr 17, 2010 11:45 am
- Forum: newLISP newS
- Topic: Search through a list of alists -- bug found?
- Replies: 3
- Views: 3595
Re: Search through a list of alists -- bug found?
Incidentally a similar problem was reported to me by email on Thursday and it is fixed in v.10.2.4 newLISP v.10.2.4 on Win32 IPv4, execute 'newlisp -h' for more info. > (setq la '(((k0 v0) (k1 v1)) ((k2 v2) (k3 v3)) ((k4 v4) (k5 v5)))) (((k0 v0) (k1 v1)) ((k2 v2) (k3 v3)) ((k4 v4) (k5 v5))) > (doli...
- Fri Apr 16, 2010 9:33 pm
- Forum: newLISP newS
- Topic: Search through a list of alists -- bug found?
- Replies: 3
- Views: 3595
Search through a list of alists -- bug found?
I am trying to search through a list of the associative lists (a sort of nested context handling). I have tried to use a call to assoc function as a break condition of dolist , example code follows: newLISP v.10.2.1 on Win32 IPv4, execute 'newlisp -h' for more info. > ; a sort of nested contexts > (...
- Thu Apr 15, 2010 9:04 pm
- Forum: newLISP and the O.S.
- Topic: (directory) in Windows and UTF8
- Replies: 6
- Views: 6748
Re: (directory) in Windows and UTF8
A bit too late, but: a newlisp wrapper to iconv exists on the site of Dmitry Chernyak [ here ]. It was written as unix-specific, but it is easy to adopt it for Windows usage: just change library name (form ".so" to ".dll") and add prefix "lib" to all three imported functions. Warning: the module wor...