From: Michael Welsh Duggan <md5i@cs.cmu.edu>
Cc: Glenn Morris <rgm@gnu.org>, jidanni@jidanni.org, emacs-devel@gnu.org
Subject: Re: [jidanni@jidanni.org: shell-script-mode case indenting]
Date: Sun, 01 Oct 2006 14:38:51 -0400 [thread overview]
Message-ID: <87odsvop8k.fsf@cs.cmu.edu> (raw)
In-Reply-To: <E1GU32g-0004Ua-Su@fencepost.gnu.org> (Richard Stallman's message of "Sun\, 01 Oct 2006 11\:15\:46 -0400")
[-- Attachment #1: Type: text/plain, Size: 319 bytes --]
Richard Stallman <rms@gnu.org> writes:
> And now indentation of ordinary case blocks is wrong:
>
> Should we take out that change, or what?
This should fix the problem. I was originally messed up by the fact
that the `unless' body in the original code was not indented, and due
to that misplaced a parentheses.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1312 bytes --]
Index: sh-script.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/sh-script.el,v
retrieving revision 1.187
diff -u -p -c -r1.187 sh-script.el
cvs diff: conflicting specifications of output style
*** sh-script.el 30 Sep 2006 09:38:45 -0000 1.187
--- sh-script.el 1 Oct 2006 18:35:31 -0000
*************** we go to the end of the previous line an
*** 2472,2479 ****
(point))
(skip-chars-backward " \t;")
(unless (looking-at "\\s-*;;")
! (skip-chars-backward "^)}];\"'`({[")
! (setq c (char-before))
(sh-debug "stopping at %d c is %s start=%d min-point=%d"
(point) c start min-point)
(if (< (point) min-point)
--- 2472,2479 ----
(point))
(skip-chars-backward " \t;")
(unless (looking-at "\\s-*;;")
! (skip-chars-backward "^)}];\"'`({[")
! (setq c (char-before)))
(sh-debug "stopping at %d c is %s start=%d min-point=%d"
(point) c start min-point)
(if (< (point) min-point)
*************** we go to the end of the previous line an
*** 2508,2514 ****
;; c -- return a string
(char-to-string c)
))
! )))))
(defun sh-this-is-a-continuation ()
--- 2508,2514 ----
;; c -- return a string
(char-to-string c)
))
! ))))
(defun sh-this-is-a-continuation ()
[-- Attachment #3: Type: text/plain, Size: 44 bytes --]
--
Michael Welsh Duggan
(md5i@cs.cmu.edu)
[-- Attachment #4: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2006-10-01 18:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-21 20:15 [jidanni@jidanni.org: shell-script-mode case indenting] Richard Stallman
2006-09-21 22:29 ` Michael Welsh Duggan
2006-09-22 17:01 ` Richard Stallman
2006-09-30 20:06 ` Glenn Morris
2006-10-01 15:15 ` Richard Stallman
2006-10-01 18:38 ` Michael Welsh Duggan [this message]
2006-10-01 23:43 ` Glenn Morris
2006-10-02 14:37 ` Stefan Monnier
2006-10-03 19:22 ` Michael Welsh Duggan
2006-10-03 19:41 ` Stefan Monnier
2006-10-04 3:33 ` Michael Welsh Duggan
2006-10-04 4:09 ` Stefan Monnier
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=87odsvop8k.fsf@cs.cmu.edu \
--to=md5i@cs.cmu.edu \
--cc=emacs-devel@gnu.org \
--cc=jidanni@jidanni.org \
--cc=rgm@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 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.