[29286] in Perl-Users-Digest
Perl-Users Digest, Issue: 530 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Jun 18 06:10:24 2007
Date: Mon, 18 Jun 2007 03:09:24 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Mon, 18 Jun 2007 Volume: 11 Number: 530
Today's topics:
Re: 12 hour clock and offset problem <nobull67@gmail.com>
Re: could XML::Simple handling chinese character? <scobloke2@infotop.co.uk>
Re: For Loop <mdmoura@gmail.com>
Re: For Loop <mritty@gmail.com>
Re: For Loop <dummy@example.com>
Re: Generic Syntax highlighting module <stephen.odonnell@gmail.com>
Re: Generic Syntax highlighting module <asuter@cisco.com>
Re: Generic Syntax highlighting module <stephen.odonnell@gmail.com>
How to test weather something is a func,method or var <muede73@gmx.de>
Re: How to test weather something is a func,method or v anno4000@radom.zrz.tu-berlin.de
Re: Massive Memory Structures ruu@cwcom.net
Re: Massive Memory Structures <nospam-abuse@ilyaz.org>
new CPAN modules on Mon Jun 18 2007 (Randal Schwartz)
Re: pairwise_test <rvtol+news@isolution.nl>
Re: Passing literal with reference? <baxter.brad@gmail.com>
Re: Passing literal with reference? <uri@stemsystems.com>
Re: perl and php <bart.lateur@pandora.be>
Re: The Modernization of Emacs <philipp.leitner@gmx.at>
Re: The Modernization of Emacs <george.sakkis@gmail.com>
Re: The Modernization of Emacs <cmr.Pent@gmail.com>
Re: The Modernization of Emacs <alexandru.lz@gmail.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 18 Jun 2007 08:27:16 -0000
From: Brian McCauley <nobull67@gmail.com>
Subject: Re: 12 hour clock and offset problem
Message-Id: <1182155236.368126.50900@m36g2000hse.googlegroups.com>
On Jun 17, 12:05 pm, Kenetic <dbr...@gmail.com> wrote:
> On Jun 16, 9:19 am, Brian McCauley <nobul...@gmail.com> wrote:
>
> > Perl has a mod operator.
> Brian, the reason why I need to use a sub for mod is that perl's mod
> doesn't work very well with fractions. I picked this snippet up from
> perlmonks, if you compare '3.5 % 3' and myMod(3.5, 3), the former will
> result in 0, the latter is 0.5.
When dealing with time, currency, or anything like that never work
with fractions if you can avoid it. Always convert to a unit that will
keep all your numbers integer (cents, seconds, whatever).
> > sub getutc {
> > my $time = shift;
> > my $GMTOffset = shift;
> > my ($hours,$minutes,$ampm) =
> > $time =~ /(\d{1,2}):(\d\d)\s*([ap]m)/ or die;
> > $hours += 12 if $ampm eq 'pm';
> > my $m = (($hours - $GMTOffset) * 60 + $minutes ) % ( 24 * 60 );
> > return sprintf("%2d:%02d %s",
> > int($m / 60 + 11 ) % 12 + 1,
> > $m % 60,
> > $m < 12 * 60 ? 'am' : 'pm');
> Other then that, I think your scripts works to the extent that 12 pm
> and 12 am don't work properly.
Sorry, yes.
$hours += 12 if $ampm eq 'pm';
Should, of course, read:
$hours += 12 if $ampm eq 'pm' xor $hours eq '12';
------------------------------
Date: Mon, 18 Jun 2007 11:03:17 +0100
From: Ian Wilson <scobloke2@infotop.co.uk>
Subject: Re: could XML::Simple handling chinese character?
Message-Id: <46765872$0$30335$fa0fcedb@news.zen.co.uk>
xhoster wrote:
> havel zhang wrote:
>> <?xml version=3D"1.0" encoding=3D"utf-8"?>
>> <user>=BA=CD=C6=BD</user>
>
>
> I'm not sure that the Chinese characters in your post survived their
> trip through usenet, so I can't use the above to serve as a realistic test.
The two chinese characters displayed OK in my newsreader.
The OP's posting had this header
Content-Type: text/plain; charset="gb2312"
Could it be that your newsreader doesn't support GB2312 encoding?
As others have said, it seems likely that the OP's XML file is actually
encoded in GB2312, not in UTF8 as specified in it's XML declaration.
> Can you post a bit of Perl code (using chr(), for example) which is coded
> in ASCII but would, when run, properly create the characters you are trying
> to express?
------------------------------
Date: Sun, 17 Jun 2007 16:28:54 -0700
From: shapper <mdmoura@gmail.com>
Subject: Re: For Loop
Message-Id: <1182122934.897162.228820@n60g2000hse.googlegroups.com>
On Jun 17, 5:23 pm, "Dr.Ruud" <rvtol+n...@isolution.nl> wrote:
> Paul Lalli schreef:
>
> > shapper:
> >> { for ($s=0,$i=$row; $s<$c; $i+=($h+($s<$rm)), ++$s)
>
> > [...] At the end of each
> > iteration, it increments $s by 1, and adds $h to $i. If $s is less
> > than $rm, it will add an aditional 1 to $i.
>
> The behaviour of $s could well be undefined (un-guaranteed) there.
> Because of the comma-operator, I would expect that the ++$s is done
> *after* $i is updated.
>
> --
> Affijn, Ruud
>
> "Gewoon is een tijger."
Hi,
I tried to convert the code but until now I wasn't success ... I am
maybe doing something wrong here.
Does anyone knows what would be the equivalent code in C# or VB.NET?
Thanks,
Miguel
------------------------------
Date: Sun, 17 Jun 2007 23:45:07 -0000
From: Paul Lalli <mritty@gmail.com>
Subject: Re: For Loop
Message-Id: <1182123907.106076.261630@q69g2000hsb.googlegroups.com>
On Jun 17, 7:28 pm, shapper <mdmo...@gmail.com> wrote:
> > > shapper:
> > >> { for ($s=0,$i=$row; $s<$c; $i+=($h+($s<$rm)), ++$s)
> I tried to convert the code but until now I wasn't success ... I am
> maybe doing something wrong here.
Undoubtedly you are, but you didn't show any code for anyone to tell
you *what* you're doing wrong.
> Does anyone knows what would be the equivalent code in C# or
> VB.NET?
You've been told what the Perl code does. If you don't know how to
translate the English algorithm into C# or VB.NET code, then you have
a C# and/or VB.NET problem, not a Perl problem. You are far more
likely to receive good answers to this query in a newsgroup devoted to
C# or VB.NET.
Paul Lalli
------------------------------
Date: Mon, 18 Jun 2007 01:47:14 GMT
From: "John W. Krahn" <dummy@example.com>
Subject: Re: For Loop
Message-Id: <Culdi.31199$vT6.26210@edtnps90>
Tad McClellan wrote:
> shapper <mdmoura@gmail.com> wrote:
>
>> I don't know PERL
>
> We can tell, because you did not spell "Perl" correctly. :-)
The OP *spelt* it correctly, they just didn't capitalize it correctly. :-)
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
------------------------------
Date: Sun, 17 Jun 2007 22:20:14 -0000
From: Stephen O'D <stephen.odonnell@gmail.com>
Subject: Re: Generic Syntax highlighting module
Message-Id: <1182118814.361735.269920@u2g2000hsc.googlegroups.com>
On Jun 17, 6:25 pm, Mark Pryor <tlvie...@VISTAyahoo.com> wrote:
> On Sun, 17 Jun 2007 13:33:03 +0000, Stephen O'D wrote:
> > Guys,
>
> > I am looking for a module that can syntax highlight lots of different
> > types of source code so I can display it in a browser.
>
> > I have tried installing Syntax::Highlight::Universal, which is based
> > on the Colorer library, but it fails to compile for me and the module
> > doesn't seem to be maintained any more.
>
> > Any suggestions of a good module to use that supports many different
> > languages?
>
> For all things Perl, use PerlTidy.
> Here's one of my scripts converted to html for browsinghttp://www.tlviewer.org/crypto/DHBigInt.pl.html
>
> --
> Mark
Thanks for that - I really need something that works for a whole bunch
of languages. I may have to roll my sleeves up and fix
Syntax::Highlight::Universal, as it seems to support most languages.
------------------------------
Date: Sun, 17 Jun 2007 21:39:46 -0700
From: "Asim Suter" <asuter@cisco.com>
Subject: Re: Generic Syntax highlighting module
Message-Id: <1182141589.893855@sj-nntpcache-2.cisco.com>
For an editor have you tried gvim yet ?
Asim Suter
"Stephen O'D" <stephen.odonnell@gmail.com> wrote in message
news:1182087183.374807.65020@m36g2000hse.googlegroups.com...
> Guys,
>
> I am looking for a module that can syntax highlight lots of different
> types of source code so I can display it in a browser.
>
> I have tried installing Syntax::Highlight::Universal, which is based
> on the Colorer library, but it fails to compile for me and the module
> doesn't seem to be maintained any more.
>
> Any suggestions of a good module to use that supports many different
> languages?
>
> thanks,
>
> Stephen.
>
------------------------------
Date: Mon, 18 Jun 2007 01:40:46 -0700
From: Stephen O'D <stephen.odonnell@gmail.com>
Subject: Re: Generic Syntax highlighting module
Message-Id: <1182156046.102374.142470@w5g2000hsg.googlegroups.com>
On Jun 18, 5:39 am, "Asim Suter" <asu...@cisco.com> wrote:
> For an editor have you tried gvim yet ?
>
> Asim Suter
>
> "Stephen O'D" <stephen.odonn...@gmail.com> wrote in message
>
> news:1182087183.374807.65020@m36g2000hse.googlegroups.com...
>
> > Guys,
>
> > I am looking for a module that can syntax highlight lots of different
> > types of source code so I can display it in a browser.
>
> > I have tried installing Syntax::Highlight::Universal, which is based
> > on the Colorer library, but it fails to compile for me and the module
> > doesn't seem to be maintained any more.
>
> > Any suggestions of a good module to use that supports many different
> > languages?
>
> > thanks,
>
> > Stephen.
I am more of an emacs fan to be honest :) I don't want to create
myself an editor, I want to be able to display syntax highlighted code
in a browser, and support many languages ...
------------------------------
Date: Mon, 18 Jun 2007 10:42:26 +0200
From: muede <muede73@gmx.de>
Subject: How to test weather something is a func,method or var
Message-Id: <1182156164.783212@arno.fh-trier.de>
scenario :
I have an existing module 'Foo::Bar' and
I know an identifier 'something' belongs somehow
to this module.
problem :
How to I find out ( inside perl code, otherwise I could lookup the pod ),
what kind of 'something' I am dealing here with ?
The only idea I have , is by simply trying to access it in all possible
ways and then parse the error output somehow. But this doesn't sound
very appealing.
Do you know a better way ?
-ap
--
------------------------------
Date: 18 Jun 2007 09:10:13 GMT
From: anno4000@radom.zrz.tu-berlin.de
Subject: Re: How to test weather something is a func,method or var
Message-Id: <5dn0flF358qirU1@mid.dfncis.de>
muede <muede73@gmx.de> wrote in comp.lang.perl.misc:
>
> scenario :
>
> I have an existing module 'Foo::Bar' and
> I know an identifier 'something' belongs somehow
> to this module.
>
> problem :
>
> How to I find out ( inside perl code, otherwise I could lookup the pod ),
> what kind of 'something' I am dealing here with ?
How does a situation like this happen?
> The only idea I have , is by simply trying to access it in all possible
> ways and then parse the error output somehow. But this doesn't sound
> very appealing.
>
> Do you know a better way ?
Read up about typeglobs in perldata.
sub analyze {
my $name = shift;
no strict 'refs';
my $glob = *$name;
for ( qw( SCALAR ARRAY HASH CODE IO) ) {
print "$name is a $_\n" if *$glob{ $_};
}
}
analyze( 'Foo::Bar::something');
Anno
------------------------------
Date: Sun, 17 Jun 2007 20:36:38 -0700
From: ruu@cwcom.net
Subject: Re: Massive Memory Structures
Message-Id: <1182137798.123171.231300@o61g2000hsh.googlegroups.com>
>> Can you find the (mystery) error message in perldiag.pod?
It isn't a mystery - the error is "Out of Memory!" - I'm sorry if I
wasn't clear enough. The pod only suggests ulimit tweaks, and all the
relevant settings are already unlimited as far as I can tell
(mentioned in my first post).
>> Why not create the $bigvar directly?
I wanted to limit the amount of memory the script used to a known
amount (5G in the example) and do it as quickly as possible. It was
the first thing that popped into my head to be honest, and it seemed
to work relatively quickly.
Dave
------------------------------
Date: Mon, 18 Jun 2007 07:29:30 +0000 (UTC)
From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: Re: Massive Memory Structures
Message-Id: <f55c8q$u8m$1@agate.berkeley.edu>
[A complimentary Cc of this posting was sent to
<ruu@cwcom.net>], who wrote in article <1181948380.781819.311060@q75g2000hsh.googlegroups.com>:
> open(FILE,"$filename");
> $bigvar = <FILE>;
> close FILE;
Typical users underestimate the amount of memory used by "a
statement". E.g., if no optimizations were present, the statement
above could use about 50GB+. Look at it:
a) you read data of unknown size into a temporary variable; the buffer
used by this variable is realloc()ed about 150 times. Assume the
"trail" of old buffers takes about 35GB; then the total size used is
40G + memory overhead on a 5GB allocation.
b) The temporary variable is copied inot $bigvar; (another 5GB + memory
overhead);
c) The copied value is also the value of the statement; another 5G +
memory overhead is sitting on Perl stack.
AFAIR, "b" and "c" are currently optimized away. However, "a" is
fully dependent on the malloc() implementation, and (unless you use
Perl's malloc()) are out of Perl control. (Perl's malloc() would use
about 8GB.)
My advice is to redo the test with 3GB allocation, and check the
actual memory usage.
Hope this helps,
Ilya
------------------------------
Date: Mon, 18 Jun 2007 04:42:10 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Mon Jun 18 2007
Message-Id: <JJtEEA.1q2B@zorch.sf-bay.org>
The following modules have recently been added to or updated in the
Comprehensive Perl Archive Network (CPAN). You can install them using the
instructions in the 'perlmodinstall' page included with your Perl
distribution.
AI-NeuralNet-SOM-0.04
http://search.cpan.org/~drrho/AI-NeuralNet-SOM-0.04/
Perl extension for Kohonen Maps
----
AI-Pathfinding-AStar-0.10
http://search.cpan.org/~acdalton/AI-Pathfinding-AStar-0.10/
Perl implementation of the A* pathfinding algorithm
----
Archive-Rar-1.93
http://search.cpan.org/~smueller/Archive-Rar-1.93/
Interface with the 'rar' command
----
CPAN-Reporter-0.44
http://search.cpan.org/~dagolden/CPAN-Reporter-0.44/
Provides Test::Reporter support for CPAN.pm
----
CPANPLUS-0.80
http://search.cpan.org/~kane/CPANPLUS-0.80/
API & CLI access to the CPAN mirrors
----
CPANPLUS-Dist-Deb-0.06
http://search.cpan.org/~kane/CPANPLUS-Dist-Deb-0.06/
----
Calendar-Japanese-Holiday-0.03
http://search.cpan.org/~kztomita/Calendar-Japanese-Holiday-0.03/
Japanese holidays in calender
----
DBIx-Class-0.08000
http://search.cpan.org/~mstrout/DBIx-Class-0.08000/
Extensible and flexible object <-> relational mapper.
----
DBIx-Class-0.08001
http://search.cpan.org/~mstrout/DBIx-Class-0.08001/
Extensible and flexible object <-> relational mapper.
----
DBIx-Class-InflateColumn-IP-0.02001
http://search.cpan.org/~ilmari/DBIx-Class-InflateColumn-IP-0.02001/
Auto-create NetAddr::IP objects from columns.
----
File-LinkTree-Builder-0.002
http://search.cpan.org/~rjbs/File-LinkTree-Builder-0.002/
builds a tree of symlinks based on file metadata
----
File-LinkTree-Builder-0.003
http://search.cpan.org/~rjbs/File-LinkTree-Builder-0.003/
builds a tree of symlinks based on file metadata
----
Geo-Query-LatLong-0.8003
http://search.cpan.org/~retoh/Geo-Query-LatLong-0.8003/
Perl module to query latitude and longitude from a city.
----
Lingua-EN-AddressParse-1.15
http://search.cpan.org/~kimryan/Lingua-EN-AddressParse-1.15/
manipulate geographical addresses
----
Markaya-0.0.3
http://search.cpan.org/~gugod/Markaya-0.0.3/
Markup As YAML
----
Net-Daemon-0.43
http://search.cpan.org/~mnooning/Net-Daemon-0.43/
Perl extension for portable daemons
----
PlRPC-0.2020
http://search.cpan.org/~mnooning/PlRPC-0.2020/
A bundle to install PlRPC-Server, Client and prerequisites.
----
Regexp-Wildcards-0.03
http://search.cpan.org/~vpit/Regexp-Wildcards-0.03/
Converts wildcard expressions to Perl regular expressions.
----
SVN-Notify-2.66
http://search.cpan.org/~dwheeler/SVN-Notify-2.66/
Subversion activity notification
----
Template-Plugin-Gravatar-0.04
http://search.cpan.org/~ashley/Template-Plugin-Gravatar-0.04/
configurable generation of Gravatar URLs from email addresses.
----
Time-HiRes-Value-0.05
http://search.cpan.org/~pevans/Time-HiRes-Value-0.05/
a class representing a time value or interval in exact microseconds
----
XML-Bare-0.06
http://search.cpan.org/~codechild/XML-Bare-0.06/
Minimal XML parser implemented via a C++ state engine
----
YAML-LibYAML-0.18
http://search.cpan.org/~ingy/YAML-LibYAML-0.18/
----
re-engine-Plan9-0.08
http://search.cpan.org/~avar/re-engine-Plan9-0.08/
Plan 9 regular expression engine
----
re-engine-Plan9-0.09
http://search.cpan.org/~avar/re-engine-Plan9-0.09/
Plan 9 regular expression engine
If you're an author of one of these modules, please submit a detailed
announcement to comp.lang.perl.announce, and we'll pass it along.
This message was generated by a Perl program described in my Linux
Magazine column, which can be found on-line (along with more than
200 other freely available past column articles) at
http://www.stonehenge.com/merlyn/LinuxMag/col82.html
print "Just another Perl hacker," # the original
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
------------------------------
Date: Mon, 18 Jun 2007 11:10:22 +0200
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: pairwise_test
Message-Id: <f55ph3.1g4.1@news.isolution.nl>
Michele Dondi schreef:
> Dr.Ruud:
>> # find the index of the first non-equal value for
>> # two arrays, and within a specific index range:
>> print pairwise_do { $a != $b ? $_ : undef } @x, @y, 2..9;
>
> Maybe useful for other purposes, but in this case, what's the
> *big* advantage over List::Util's
>
> print first { $x[$_] != $y[$_] } 2..9; # ?
Thanks, that is a good alternative for this case. I'll check out the
implementation of first() too.
I want mine to be shortcutting, as first() most probably is too.
And to work on defined() in stead of true/false, so maybe I should call
it first_defined(). Or change to true/false.
A variant of List::MoreUtils::firstidx() could look like this:
$i = firstidx { $a != $b } @x, @y;
$i = firstidx { $a != $b } @x, @y, 2..9;
I'll try to come up with an example that uses it more to the full, I
need to write tests anyway.
> If the range were not explicit... then yes, somewhat more clumsy:
>
> print first { $x[$_] != $y[$_] } 1..max($#x,$#y);
ITYM 0 .. max($#x,$#y).
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
Date: Mon, 18 Jun 2007 03:00:53 -0000
From: Brad Baxter <baxter.brad@gmail.com>
Subject: Re: Passing literal with reference?
Message-Id: <1182135653.329004.106590@k79g2000hse.googlegroups.com>
On Jun 15, 9:06 am, Mirco Wahab <wahab-m...@gmx.net> wrote:
> Brad Baxter wrote:
> > On Jun 11, 3:37 pm, dorno <d...@whitehouse.com> wrote:
> >> Anyway, if I can make my request somewhat more clear.
>
> >> Passing \$var, \@array and \%hash keeps the entire batch from being
> >> flattened.
>
> > No, passing references keeps hashes and arrays from being flattened.
> > A scalar, be it a reference or not, will not be "flattened" any
> > further.
> > So just pass the darn scalar. :-)
>
> What if the "scalar" is, say 316,21 MB in size?
> Would you still send it down to subroutines 'as it is'?
>
Would I? If I knew it would be that big, no. But the OP is,
I think, dealing with a different conundrum, e.g., he says,
"But sometimes, instead of $var, I just want to pass a literal instead
of
initalizing a variable and then passing that."
It is unlikely that he is planning to pass a 316 MB literal.
So I say again, just pass the darn thing. I will go out on
a limb and venture to say that the number of times a scalar
is passed to a subroutine vs. the number of times a reference
to a scalar is passed is about, oh, 1_000_000_000:1
Give or take.
--
Brad
------------------------------
Date: Mon, 18 Jun 2007 04:14:07 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: Passing literal with reference?
Message-Id: <x7myyx7vch.fsf@mail.sysarch.com>
>>>>> "BB" == Brad Baxter <baxter.brad@gmail.com> writes:
BB> It is unlikely that he is planning to pass a 316 MB literal.
BB> So I say again, just pass the darn thing. I will go out on
BB> a limb and venture to say that the number of times a scalar
BB> is passed to a subroutine vs. the number of times a reference
BB> to a scalar is passed is about, oh, 1_000_000_000:1
BB> Give or take.
ever realize that perl objects are references and are always passed to
methods? i think that evens out the ratio a bit. and it isn't how often
a scalar is passed around but how often large ones are passed. in one
system of mine, i generally pass around scalar refs since that data may
get copied from @_ and passed around even more. it makes sense to pass
scalar refs then to keep the copying overhead to a minumum.
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
------------------------------
Date: Mon, 18 Jun 2007 06:30:20 GMT
From: Bart Lateur <bart.lateur@pandora.be>
Subject: Re: perl and php
Message-Id: <9i9c735qhnikm75lcss85h26rlv6v77lh5@4ax.com>
krakle@visto.com wrote:
>In short... If you're developing for the internet
>...
>I would use PHP simply because it makes more
>sense to use the right tool for the right job.
Only for small sites/pages.
--
Bart.
------------------------------
Date: Sun, 17 Jun 2007 15:46:09 -0700
From: Philipp Leitner <philipp.leitner@gmx.at>
Subject: Re: The Modernization of Emacs
Message-Id: <1182120369.111379.87740@o61g2000hsh.googlegroups.com>
Ever came to your mind that there are people (programmers and others)
who will not use emacs for their day-to-day work simply because they
have tools that suit them better for the work they have to do (Eclipse
for me, as an example)?
Except from that: I personally don't feel that your rantings are
interesting enough to qualify for a 4 groups X-post ... this sort of
article goes well into a blog, but not so much on programmers
newsgroups (which are used for Q&A imho).
------------------------------
Date: Mon, 18 Jun 2007 01:59:17 -0000
From: George Sakkis <george.sakkis@gmail.com>
Subject: Re: The Modernization of Emacs
Message-Id: <1182131957.212093.24290@w5g2000hsg.googlegroups.com>
On Jun 17, 6:46 pm, Philipp Leitner <philipp.leit...@gmx.at> wrote:
> Ever came to your mind that there are people (programmers and others)
> who will not use emacs for their day-to-day work simply because they
> have tools that suit them better for the work they have to do (Eclipse
> for me, as an example)?
>
> Except from that: I personally don't feel that your rantings are
> interesting enough to qualify for a 4 groups X-post ... this sort of
> article goes well into a blog, but not so much on programmers
> newsgroups (which are used for Q&A imho).
You must be new here. Xah is a well-known self-important troll,
crossposting his mostly off-topic and/or controversial ramblings and
showing off his ignorance in a provocative condescending manner. Don't
waste resources by replying, he rarely follows up anyway.
------------------------------
Date: Sun, 17 Jun 2007 23:58:40 -0700
From: "cmr.Pent@gmail.com" <cmr.Pent@gmail.com>
Subject: Re: The Modernization of Emacs
Message-Id: <1182149920.511188.241520@q75g2000hsh.googlegroups.com>
On 17 ÉÀÎ, 19:13, Xah Lee <x...@xahlee.org> wrote:
> In the following, i describe some critical changes that are also very
> easy to fix in emacs. If emacs officially adopt these changes, i think
> it will make a lot people, at least programers, like emacs and choose
> emacs as their text editor.
>
> * Change the keyboard shortcut of Copy & Paste to ctrl-c and ctrl-
> v as to be the same with all modern applications.
>
There is a CUA-mode.
> * Get rid of the *scratch* buffer.
>
I agree that it should be off by default. I hope that only a minority
of emacs users are emacs developers ;-)
> * Change the terminology of "kill" to "cut", and "yank" to
> "paste".
>
In my emacs 21 in menu it says just that.
> * Change the terminology of Meta key to Alt.
>
I guess emacs is not for PC only...
> * Make longlines-mode the default editor behavior for any file.
>
This is doubtful, but I agree that all modes (LaTeX etc) should at
least work correctly with longlines mode.
> * When opening a HTML document, automatically provide highlighting
> of HTML, CSS, and Javascript codes. Similarly for other multi-language
> files such as PHP, JSP, et al. This behavior must be automatic without
> requiring user to customize emacs.
>
For me it opens R files with proper highlighting out-of-the-box -_-;
> * Reduce the use of the word "buffer" in the emacs documentation.
> Call it "opened file" or "unsaved document".
>
As far as I understand the concept of buffer is much much wider than
of "unsaved document" or "file". Should we call dired buffer as
"unsaved document"?
> Xah
> x...@xahlee.org
> http://xahlee.org/
------------------------------
Date: Mon, 18 Jun 2007 02:57:24 -0700
From: "alexandru.lz@gmail.com" <alexandru.lz@gmail.com>
Subject: Re: The Modernization of Emacs
Message-Id: <1182160644.003705.274820@w5g2000hsg.googlegroups.com>
>
> > * Reduce the use of the word "buffer" in the emacs documentation.
> > Call it "opened file" or "unsaved document".
>
> As far as I understand the concept of buffer is much much wider than
> of "unsaved document" or "file". Should we call dired buffer as
> "unsaved document"?
>
It is much wider, which is why it was used in the first place.
Considering most of Xah's article, I think an animated paperclip
(maybe in ASCII art) should be the top priority for emacs developers.
This would be an important step in modernizing emacs.
Leaving this aside, I'm also taking a wild guess that some *nices (not
just Linux distros, but also *BSD, Solaris etc.) could well provide a
binary package of emacs compiled with its GTK UI, besides those
they're already providing (nox and the ugly one for X). It's a fair
assumption to consider that not anyone has GTK, but it's common enough
to provide an alternative to that stumpy Xlib-based (I think :-\) UI
that's default in just about every binary package around. It's not
just that it looks ugly, it's also somewhat awkward at times.
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 530
**************************************