[9fans] Sam commands in acme

2009-06-26 Thread hugo rivera
Hi, I am trying to select all c comments from within a file using acme, but I am unable to do it properly. The command x/\/\*.*\*\// is the closest I could get, but it doesn't work with comments that span over more than one line. This raises a question for me: somewhere, I cannot recall where, I

[9fans] Another acme question

2009-06-26 Thread hugo rivera
Hello, I have another problem with acme. Lets say I want to check the spelling in all the comments in a c file, so I execute: Edit ,x/\/\*.*\*\// spell (nevermind this doesn't work for more than one line comments) and nothing happens. This doesn't mean that my spelling is good, since I saw some

Re: [9fans] Sam commands in acme

2009-06-26 Thread yy
2009/6/26 hugo rivera uai...@gmail.com: Hi, I am trying to select all c comments from within a file using acme, but I am unable to do it properly. The command x/\/\*.*\*\// is the closest I could get, but it doesn't work with comments that span over more than one line. This raises a question

Re: [9fans] Sam commands in acme

2009-06-26 Thread roger peppe
you need (.|\n) instead of . sam originally used @ as a match everything character but it was removed, presumably because it was rarely used. to match C comments, you need something like this: x/\/\*([^*]|\*[^\/]|[^*\/]|\n)*\*\// 2009/6/26 hugo rivera uai...@gmail.com: Hi, I am trying to

Re: [9fans] Another acme question

2009-06-26 Thread roger peppe
2009/6/26 hugo rivera uai...@gmail.com: Hello, I have another problem with acme. Lets say I want to check the spelling in all the comments in a c file, so I execute: Edit ,x/\/\*.*\*\// spell   (nevermind this doesn't work for more than one line comments) and nothing happens. this seems

Re: [9fans] Sam commands in acme

2009-06-26 Thread hugo rivera
I tested the command you suggested (,x/\/\*/.,/\*\//) and it works as I wanted, thanks. But there's something I still don't understand and is the meaning of that comma in there. As far as I know, the comma is a mark that delimits the addresses that acme understands, but I do not know how a comma

[9fans] synchronization of time, setting time

2009-06-26 Thread Rudolf Sykora
Hello everyone, 1) If I want to set the hardware (on-board) clock by hand, how can I? 2) If I want to synchronize the hardware time with a ntp server (once / periodically), how can I? 3) If I run the 'timesync -n [ntp server]' command, how is the frequency of synchronization determined? If I run

Re: [9fans] Sam commands in acme

2009-06-26 Thread Rudolf Sykora
2009/6/26 hugo rivera uai...@gmail.com: I tested the command you suggested (,x/\/\*/.,/\*\//) and it works as I wanted, thanks. But there's something I still don't understand and is the meaning of that comma in there. As far as I know, the comma is a  mark that delimits the addresses that acme

Re: [9fans] Sam commands in acme

2009-06-26 Thread hugo rivera
Yes, you are right. Now I understand it, I missed the / after \*, so I was thinking that the comma was inside the regexp. Thanks a lot :-) 2009/6/26 Rudolf Sykora rudolf.syk...@gmail.com: 2009/6/26 hugo rivera uai...@gmail.com: I tested the command you suggested (,x/\/\*/.,/\*\//) and it works

[9fans] How to add another (local) fossil partition?

2009-06-26 Thread cej
hello, i want to format and add a free space on /dev/sdC0 for use with fossil. i ended up with /dev/sdC0/plan9 and /dev/sdC0/plan9.1 partitions... then i did: disk/prep –w –a fossil /dev/sdC0/plan9.1 but now, i cant find any clue what to do next , in prep(8), or fossilcons(8) sorry for this

Re: [9fans] synchronization of time, setting time

2009-06-26 Thread erik quanstrom
1) If I want to set the hardware (on-board) clock by hand, how can I? date -n/dev/rtc 2) If I want to synchronize the hardware time with a ntp server (once / periodically), how can I? modify timesync. 3) If I run the 'timesync -n [ntp server]' command, how is the frequency of

[9fans] iwp9 2009

2009-06-26 Thread erik quanstrom
the iwp9 4e website is up at http://iwp9.quanstro.net/. the biggest difference from previous years is that we would like to include works-in-progress in the proceedings. these do not need to be lengthy or world changing, so i would expect that most attendees will submit one (or more?). a

[9fans] timesync -r not working?

2009-06-26 Thread Ethan Grammatikidis
I'm running plan 9 in qemu, I want to use the qemu-emulated hardware clock for the plan 9 time because it keeps the same time as the host. I made a script to be sourced from cpurc: #!/bin/rc echo ' starting timesync' if (! test -e '/dev/rtc')

Re: [9fans] timesync -r not working?

2009-06-26 Thread erik quanstrom
The script runs at boot, the echo tells me that much, but the time is not set, perhaps as if timesync -r is not working. To be specific the date a few minutes after booting is Sun Jan 2 18:30:36 GMT 2000. i believe timesync is setting the system clock from /dev/rtc, not the other way