unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Shell-script mode: Backslash has syntax "punctuation", not "escape".
  2007-07-03 10:15 Shell-script mode: Backslash has syntax "punctuation", not "escape" Alan Mackenzie
@ 2007-07-03  9:51 ` martin rudalics
  2007-07-03 12:06   ` Alan Mackenzie
  0 siblings, 1 reply; 5+ messages in thread
From: martin rudalics @ 2007-07-03  9:51 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: emacs-devel

 > Hi, Emacs!

Hi, Alan!

 > Load the following file into Emacs:
 >
 > #########################################################################
 > #!/bin/bash
 > echo Backslash doesn\'t have escape syntax.
 > # The rest of the file now has string fontification.
 > #########################################################################
 >
 > Font locking doesn't take the backslash in "doesn\'t" seriously.  A
 > quick C-u C-x = on this backslash shows it has "." (punctuation) syntax.
 >

Stefan fixed this in the trunk.  Did you try with the latest sources?

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

* Shell-script mode: Backslash has syntax "punctuation", not "escape".
@ 2007-07-03 10:15 Alan Mackenzie
  2007-07-03  9:51 ` martin rudalics
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Mackenzie @ 2007-07-03 10:15 UTC (permalink / raw)
  To: emacs-devel

Hi, Emacs!

Load the following file into Emacs:

#########################################################################
#!/bin/bash
echo Backslash doesn\'t have escape syntax.
# The rest of the file now has string fontification.
#########################################################################

Font locking doesn't take the backslash in "doesn\'t" seriously.  A
quick C-u C-x = on this backslash shows it has "." (punctuation) syntax.

In Emacs 21, backslash has "\\" (escape) syntax, and this fragment
fontifies properly there.

Not giving backslash escape syntax seems wierd, so wierd that it was
surely done deliberately for a good reason.  Can anybody tell me what
this reason was?

Whatever, it would seem that the Font Locking in this mode needs fixing.

-- 
Alan Mackenzie (Ittersbach, Germany).

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

* Re: Shell-script mode: Backslash has syntax "punctuation", not "escape".
  2007-07-03 12:06   ` Alan Mackenzie
@ 2007-07-03 11:44     ` martin rudalics
  2007-07-23  5:45       ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: martin rudalics @ 2007-07-03 11:44 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: Stefan Monnier, emacs-devel

> Hi, Martin and everybody!
> 
>>Stefan fixed this in the trunk.  Did you try with the latest sources?
> 
> 
> No, I hadn't.  I have now, and it works.  Thanks!  :-)

Fine!

> Apologies for the noise.

The noise should motivate Stefan to install this in Emacs 22.2 ;-)

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

* Re: Shell-script mode: Backslash has syntax "punctuation", not "escape".
  2007-07-03  9:51 ` martin rudalics
@ 2007-07-03 12:06   ` Alan Mackenzie
  2007-07-03 11:44     ` martin rudalics
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Mackenzie @ 2007-07-03 12:06 UTC (permalink / raw)
  To: martin rudalics; +Cc: emacs-devel

Hi, Martin and everybody!

On Tue, Jul 03, 2007 at 11:51:17AM +0200, martin rudalics wrote:
> > Hi, Emacs!

> Hi, Alan!

> > Load the following file into Emacs:
> >
> > #########################################################################
> > #!/bin/bash
> > echo Backslash doesn\'t have escape syntax.
> > # The rest of the file now has string fontification.
> > #########################################################################
> >
> > Font locking doesn't take the backslash in "doesn\'t" seriously.  A
> > quick C-u C-x = on this backslash shows it has "." (punctuation) syntax.
> >

> Stefan fixed this in the trunk.  Did you try with the latest sources?

No, I hadn't.  I have now, and it works.  Thanks!  :-)

Apologies for the noise.

-- 
Alan.

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

* Re: Shell-script mode: Backslash has syntax "punctuation", not "escape".
  2007-07-03 11:44     ` martin rudalics
@ 2007-07-23  5:45       ` Stefan Monnier
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2007-07-23  5:45 UTC (permalink / raw)
  To: martin rudalics; +Cc: Alan Mackenzie, emacs-devel

> The noise should motivate Stefan to install this in Emacs 22.2 ;-)

I believe I just did,


        Stefan

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

end of thread, other threads:[~2007-07-23  5:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-03 10:15 Shell-script mode: Backslash has syntax "punctuation", not "escape" Alan Mackenzie
2007-07-03  9:51 ` martin rudalics
2007-07-03 12:06   ` Alan Mackenzie
2007-07-03 11:44     ` martin rudalics
2007-07-23  5:45       ` 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).