[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Emacs 21.2 align.el - Perl hash element alignment bug
From: |
Jari Aalto+mail.emacs |
Subject: |
Emacs 21.2 align.el - Perl hash element alignment bug |
Date: |
Mon, 23 Dec 2002 21:54:33 +0200 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/20.7 (i386-*-nt5.0.2195) (i386-*-nt5.0.2195) |
(emacs-version)
"GNU Emacs 21.2.1 (i386-msvc-nt5.0.2195) of 2002-03-19 on buffy"
1) M-x cperl-mode
2) load-library align
3) Write the above tests
align.el behaves incorrectly in cperl-mode where the code reads:
%hash = ( one => 1
, amnMore => 2
, hm => 3
, likeThisOne => 4-!-
);
Position cursor (-!-) anywhere at the end of the above lines and
call M-x align-newline-and-indent. The problem is that align.el
seeks first "=":
%hash = ( one => 1
, amnMore => 2
, hm => 3
, likeThisOne => 4
);
It should be smarter and align according to "=>". I studied the
code, but I do not undertand the syntax rules used there enough to
make any suggestions.
%hash = ( one => 1
, andMore => 2
, hm => 3
, likeThisOne => 4
);
Jari
--
http://tiny-tools.sourceforge.net/
Swatch @time http://www.ryanthiessen.com/swatch/resources.htm
Convert @time http://www.mir.com.my/iTime/itime.htm
- Emacs 21.2 align.el - Perl hash element alignment bug,
Jari Aalto+mail.emacs <=