all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: letters@hotpop.com (Jari Aalto+mail.emacs)
Subject: Emacs 21.2 align.el - Perl hash element alignment bug
Date: Mon, 23 Dec 2002 21:54:33 +0200	[thread overview]
Message-ID: <7ke01pfq.fsf@blue.sea.net> (raw)


(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

             reply	other threads:[~2002-12-23 19:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-23 19:54 Jari Aalto+mail.emacs [this message]
2002-12-23 21:54 ` Emacs 21.2 align.el - Perl hash element alignment bug John Wiegley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7ke01pfq.fsf@blue.sea.net \
    --to=letters@hotpop.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.