unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: John Wiegley <johnw@gnu.org>
Subject: Re: Emacs 21.2 align.el - Perl hash element alignment bug
Date: Mon, 23 Dec 2002 14:54:17 -0700	[thread overview]
Message-ID: <87bs3cxuye.fsf@alice.dynodns.net> (raw)
In-Reply-To: <7ke01pfq.fsf@blue.sea.net> (letters@hotpop.com's message of "Mon, 23 Dec 2002 21:54:33 +0200")

>>>>> On Mon Dec 23, Jari writes:

> 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.

Align is not smart enough to maintain "state", and thus make
intelligent decisions about alignment priority, or what should and
what shouldn't be aligned.  These are just line-by-line regexps,
after all.

In cases like this where is definite confusion, you, the human, will
have to step in.  Simply type M-x align-regexp on the region, and
then type "=>".  This will do exactly what you want.

John

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

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

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87bs3cxuye.fsf@alice.dynodns.net \
    --to=johnw@gnu.org \
    /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 public inbox

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

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).