unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* perl mode
@ 2013-10-01 16:09 Philippe Delavalade
  2013-10-04  2:46 ` Stefan Monnier
  0 siblings, 1 reply; 13+ messages in thread
From: Philippe Delavalade @ 2013-10-01 16:09 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all.

it's my first post on this list, so be kind with my english :-)

I have problems with indentation in perl mode when usign "$'" ; I guess it
comes from the "'"...

Here is a little example :

#!/usr/bin/perl -w

use strict;

$\ = "\n";
my $txt = 'Hello World !';

main
{
if(1)
{
($txt =~ m/Hello /) && (print "$'");
}
print "Bye";
}

exit(0);

If I run the "indent-region" command (after having marked the whole
script", identation is not correct.

I suspect I should add some lines in .emacs but I don't know which are the
right ones...

Thanks in advance for help.

-- 
Ph. Delavalade



^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <mailman.3253.1380707680.10748.help-gnu-emacs@gnu.org>]
* perl mode
@ 2013-10-02  5:00 Philippe Delavalade
  2013-10-02 17:10 ` Andreas Röhler
  0 siblings, 1 reply; 13+ messages in thread
From: Philippe Delavalade @ 2013-10-02  5:00 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all.

it's my first post on this list, so be kind with my english :-)

I have problems with indentation in perl mode when usign "$'" ; I guess it
comes from the "'"...

Here is a little example :

#!/usr/bin/perl -w

use strict;

$\ = "\n";
my $txt = 'Hello World !';

main
{
if(1)
{
($txt =~ m/Hello /) && (print "$'");
}
print "Bye";
}

exit(0);

If I run the "indent-region" command (after having marked the whole
script", identation is not correct.

I suspect I should add some lines in .emacs but I don't know which are the
right ones...

Thanks in advance for help.

-- 
Ph. Delavalade



^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: perl mode
@ 2002-05-08 19:27 Bingham, Jay
  0 siblings, 0 replies; 13+ messages in thread
From: Bingham, Jay @ 2002-05-08 19:27 UTC (permalink / raw)


There is a package called template.el available at http://emacs-template.sourceforge.net/ that will probably do what you are looking to do.

J_)
C_)ingham
.    HP NonStop Servers Software QA
.    Austin, TX
. Language is the apparel in which your thoughts parade in public.
. Never clothe them in vulgar and shoddy attire. -Dr. George W. Crane-

 -----Original Message-----
From: 	Gabriel C Millerd [mailto:gmillerd@qualhost.com] 
Sent:	Wednesday, 08 May, 2002 12:24 p
To:	help-gnu-emacs@gnu.org
Subject:	perl mode


back in college when i evoked emacs on a non existant file such as
such as something.(pl|c|cpp|sh) it would have common text that would be
used to start such a file. such as #!/path/program and what not.

anyone direct me to where i can figure out how to do this for myself?
perferablly from my home directory and perferablly for perl mode?

thanks very much

---
Gabriel Millerd |      Power is not revealed by striking hard or striken
Plumber         |       often, but by striking true. --Honore de Balzac


_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 13+ messages in thread
* perl mode
@ 2002-05-08 17:24 Gabriel C Millerd
  0 siblings, 0 replies; 13+ messages in thread
From: Gabriel C Millerd @ 2002-05-08 17:24 UTC (permalink / raw)



back in college when i evoked emacs on a non existant file such as
such as something.(pl|c|cpp|sh) it would have common text that would be
used to start such a file. such as #!/path/program and what not.

anyone direct me to where i can figure out how to do this for myself?
perferablly from my home directory and perferablly for perl mode?

thanks very much

---
Gabriel Millerd |      Power is not revealed by striking hard or striken
Plumber         |       often, but by striking true. --Honore de Balzac

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-10-04 18:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-01 16:09 perl mode Philippe Delavalade
2013-10-04  2:46 ` Stefan Monnier
2013-10-04 11:22   ` Luca Ferrari
     [not found]   ` <mailman.3390.1380885764.10748.help-gnu-emacs@gnu.org>
2013-10-04 18:55     ` Damien Wyart
     [not found] <mailman.3253.1380707680.10748.help-gnu-emacs@gnu.org>
2013-10-02 12:06 ` Damien Wyart
2013-10-02 12:23   ` Philippe Delavalade
2013-10-02 16:41   ` Philippe Delavalade
     [not found]   ` <mailman.3268.1380732091.10748.help-gnu-emacs@gnu.org>
2013-10-02 17:14     ` Damien Wyart
2013-10-03 16:19       ` Philippe Delavalade
  -- strict thread matches above, loose matches on Subject: below --
2013-10-02  5:00 Philippe Delavalade
2013-10-02 17:10 ` Andreas Röhler
2002-05-08 19:27 Bingham, Jay
2002-05-08 17:24 Gabriel C Millerd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).