emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

font-lock confused in sh-script-mode


From: Reiner Steib
Subject: font-lock confused in sh-script-mode
Date: Wed, 26 Jul 2006 15:54:04 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

M-x report-emacs-bug wrote:

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

Open the following file in emacs (emacs -Q sh-bogus-comment.sh):

--8<---------------cut here---------------start------------->8---
#!/bin/sh

do_untrusted()
{
  : ${squash:="squash_uids=0-149"}
  for host in $pc_untrusted; do
    # force `ro
    echo "  $host($squash,ro,sync)\\"
  done
}

while read dev point rest; do
  case $point
  in ( /Disks/var )
    echo "$point \\"
    rw_ro=rw do_hostlist
    echo
    echo "#"
  ;; ( * )
    :
  esac
done < /etc/fstab
--8<---------------cut here---------------end--------------->8---

The buffer is font-locked incorrectly, see the attached screen shot:

PNG image

It seems like the unbalanced backquote in the comment «# force `ro» in
combination with the two «echo "... \\"» confused font-lock.

> In GNU Emacs 22.0.50.11 (x86_64-unknown-linux-gnu, GTK+ Version 2.4.9)
>  of 2006-07-26 on bridgekeeper
> X server distributor `The X.Org Foundation', version 11.0.60801000
> configured using `configure '--prefix=/import/xtra/emacs/HEAD' '--with-gtk' 
> '--exec-prefix=/import/xtra/emacs/HEAD-x86_64''

> Important settings:
>   value of $LC_ALL: nil
>   value of $LC_COLLATE: POSIX
>   value of $LC_CTYPE: address@hidden
>   value of $LC_MESSAGES: nil
>   value of $LC_MONETARY: nil
>   value of $LC_NUMERIC: nil
>   value of $LC_TIME: nil
>   value of $LANG: en_US
>   locale-coding-system: iso-8859-15
>   default-enable-multibyte-characters: t

> Major mode: Shell-script

> Minor modes in effect:
>   tooltip-mode: t
>   tool-bar-mode: t
>   mouse-wheel-mode: t
>   menu-bar-mode: t
>   file-name-shadow-mode: t
>   global-font-lock-mode: t
>   font-lock-mode: t
>   blink-cursor-mode: t
>   unify-8859-on-encoding-mode: t
>   utf-translate-cjk-mode: t
>   auto-compression-mode: t
>   line-number-mode: t

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]