mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
* lisp/progmodes/sh-script.el (sh-smie-sh-rules): Don't align with a && in
the middle of a line. Fixes: debbugs:17896
This commit is contained in:
parent
c838708452
commit
d8899d09b9
@ -1,3 +1,8 @@
|
||||
2014-07-08 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* progmodes/sh-script.el (sh-smie-sh-rules): Don't align with a && in
|
||||
the middle of a line (bug#17896).
|
||||
|
||||
2014-07-08 Juri Linkov <juri@jurta.org>
|
||||
|
||||
* startup.el (command-line): Append displaying the warning about
|
||||
|
@ -1989,9 +1989,10 @@ May return nil if the line should not be treated as continued."
|
||||
(<= indent initial)))))
|
||||
`(column . ,(+ initial sh-indentation)))
|
||||
(`(:before . ,(or `"(" `"{" `"["))
|
||||
(when (smie-rule-hanging-p)
|
||||
(if (not (smie-rule-prev-p "&&" "||" "|"))
|
||||
(smie-rule-parent)
|
||||
(if (not (smie-rule-prev-p "&&" "||" "|"))
|
||||
(when (smie-rule-hanging-p)
|
||||
(smie-rule-parent))
|
||||
(unless (smie-rule-bolp)
|
||||
(smie-backward-sexp 'halfexp)
|
||||
`(column . ,(smie-indent-virtual)))))
|
||||
;; FIXME: Maybe this handling of ;; should be made into
|
||||
|
@ -41,6 +41,12 @@ for foo in bar; do # bug#17721
|
||||
}
|
||||
done
|
||||
|
||||
for foo in bar; do # bug#17896
|
||||
[ -e $foo ] && [ -e $bar ] && {
|
||||
echo just fine thanks
|
||||
}
|
||||
done
|
||||
|
||||
filter_3 () # bug#17842
|
||||
{
|
||||
tr -d '"`' | tr ' ' ' ' | \
|
||||
|
Loading…
Reference in New Issue
Block a user