unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Pattern-blocks auto-indentation problem.
@ 2003-05-26 11:58 Disruptor
  0 siblings, 0 replies; 2+ messages in thread
From: Disruptor @ 2003-05-26 11:58 UTC (permalink / raw)


[-- Attachment #1: Type: TEXT/PLAIN, Size: 2441 bytes --]


In GNU Emacs 21.1.1 (i386-pc-solaris2.8, X toolkit, Xaw3d scroll bars) of 2001-12-09 on newton
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: el_GR.ISO8859-7
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: C
  value of $LC_MONETARY: el_GR.ISO8859-7
  value of $LC_NUMERIC: el_GR.ISO8859-7
  value of $LC_TIME: el_GR.ISO8859-7
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Steps to reproduce:
0) acquire the 'test_before.sh' attatchment
1) C-x C-f test_before.sh
2) C-x C-p and M-C-\

The resulting script I get is 'test_after.sh':
- Only the 1st case is auto-indented correctly.
- Cases #2 and #3 are 'semi-indented'.
- Cases #4 and #5 are not indented at all.
- Case #6 is semi-indented.

Comments:
tested on emacs:
21.1.1
21.2.3
21.2.93

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
C-h C-j C-h a b u g <return> <help-echo> <C-tab> <C-tab>
<C-tab> <C-tab> <C-tab> <M-tab> <C-tab> <C-tab> <C-tab>
<C-tab> <C-tab> <C-tab> C-x o C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> C-x k <return> M-x r e p o
<tab> r t <tab> <return>

Recent messages:
(No changes need to be saved)
Auto-saving...done
GNU Emacs 21.1.1 (i386-pc-solaris2.8, X toolkit, Xaw3d scroll bars) of
2001-12-09 on newton
Loading apropos...done
Loading view...done
Type C-x 1 to remove help window.  C-M-v to scroll the help.
Loading etags...done
complete-tag: No tags table loaded; try M-x visit-tags-table
Making completion list...
Loading emacsbug...done
--text follows this line--


---------------------------------------------------------------------------------------------
 To become a Jedi of free-ware-dom, read, you must have, the philosophy of the G.N.U. project

								May the Source be with You
								  www.gnu.org/philosophy

[-- Attachment #2: Type: TEXT/PLAIN, Size: 290 bytes --]

#! /bin/bash

case "$1" in
foo )
echo "foo"
;;
esac


case "$1" in
'foo' )
echo "foo"
;;
esac

case "$1" in
"foo" )
echo "foo"
;;
esac

case "$1" in
\[ )
echo "foo"
;;
esac

case "$1" in
\] )
echo "foo"
;;
esac

case "$1" in
foo\[ )
echo "foo"
;;
esac

[-- Attachment #3: Type: TEXT/PLAIN, Size: 312 bytes --]

#! /bin/bash

case "$1" in
    foo )
	echo "foo"
	;;
esac


case "$1" in
'foo' )
	echo "foo"
	;;
esac

case "$1" in
"foo" )
	echo "foo"
	;;
esac

case "$1" in
\[ )
echo "foo"
;;
esac

case "$1" in
\] )
echo "foo"
;;
esac

case "$1" in
    foo\[ )
    echo "foo"
    ;;
esac

[-- Attachment #4: Type: text/plain, Size: 148 bytes --]

_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs

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

* Re: Pattern-blocks auto-indentation problem.
       [not found] <mailman.6776.1053950707.21513.bug-gnu-emacs@gnu.org>
@ 2003-06-01 17:37 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2003-06-01 17:37 UTC (permalink / raw)
  Cc: bug-gnu-emacs

> Steps to reproduce:
> 0) acquire the 'test_before.sh' attatchment
> 1) C-x C-f test_before.sh
> 2) C-x C-p and M-C-\
> 
> The resulting script I get is 'test_after.sh':
> - Only the 1st case is auto-indented correctly.
> - Cases #2 and #3 are 'semi-indented'.
> - Cases #4 and #5 are not indented at all.
> - Case #6 is semi-indented.

Please check the code I just checked in.
It fixes your testcase for me.  Tell me if you bump into other
such problems for different patterns,


	Stefan

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

end of thread, other threads:[~2003-06-01 17:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-26 11:58 Pattern-blocks auto-indentation problem Disruptor
     [not found] <mailman.6776.1053950707.21513.bug-gnu-emacs@gnu.org>
2003-06-01 17:37 ` Stefan Monnier

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