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

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

longlines & font-lock in python-mode (wrap in strings)


From: David Reitter
Subject: longlines & font-lock in python-mode (wrap in strings)
Date: Fri, 24 Jun 2005 20:54:35 +0100

When longlines mode is used, the syntax highlighting is broken (at least for Python): The following code is drawn only in the color used for strings starting with the string ' ",backlog_i, '. fill-column's value is 70. the "for" line is wrapped after "in", and it's already completely in the particular color. The string " back. strucs." is wrapped after 'back.' and it looks like the second part of the line is not recognized as the continuation of a string.

When I shorten the string so it's not wrapped, the rest is displayed just fine - so it looks like strings are not correctly recognized when longlines-mode is used. I haven't examined this in other major modes.


coocc_count = coocc_counts[role][i2] # i2 is the distance of the utterances nonlex_coocc_count = nonlex_coocc_counts[role][i2] # i2 is the distance of the utterances

            # print "looking at ", len(back_strucs), " back. strucs."
            # print "checking ",backlog_i, coocc_count
            for back_word_ngram, back_struc_ngram in back_strucs:

trial_counts[role][i2] += 1; # counts total number of trials (ngram-pairs) per distance

            if back_struc_ngram == struc_ngram:







In GNU Emacs 22.0.50.1 (powerpc-apple-darwin7.9.0)
 of 2005-06-17 on madonna - Aquamacs Distribution 0.9.2 beta-9
Distributor `Apple Computers', version 10.4.1
configured using `configure '--without-x' '--prefix=/usr/local''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Major mode: Python

Minor modes in effect:
  show-paren-mode: t
  delete-selection-mode: t
  pc-selection-mode: t
  cua-mode: t
  aquamacs-tool-bar-mode: t
  smart-frame-positioning-mode: t
  longlines-mode: t
  recentf-mode: t
  encoded-kbd-mode: t
  osx-key-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  tooltip-mode: t
  auto-compression-mode: t
  use-hard-newlines: t
  menu-bar-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
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  next-error-follow-minor-mode:  Fol

Recent input:
C-x C-f <up> <up> <return> <down-mouse-1> <mouse-movement>
<mouse-movement> <drag-mouse-1> <down-mouse-1> <mouse-1>
<down-mouse-1> <mouse-movement> <mouse-movement> <drag-mouse-1>
<help-echo> <menu-bar> <help-menu> <report-emacs-bug>
a s d <return> <down-mouse-1> <mouse-1> <wheel-down>
<double-wheel-down> <triple-wheel-down> <help-echo>
<menu-bar> <options> <longlines-on> <down-mouse-1>
<mouse-movement> <mouse-movement> <drag-mouse-1> H-c
<menu-bar> <help-menu> <report-emacs-bug>

Recent messages:
Loading places from ~/Library/Preferences/Aquamacs Emacs/places.el...
Loading places from /Users/dr/Library/Preferences/Aquamacs Emacs/ places.el...done
Loading url-parse...done
Loading url-methods...done
Loading url-cache...done
For information about the GNU Project and its goals, type C-h C-p.
Loading mail-utils...done
Get the new Aquamacs 0.9.2 beta-8 from http://aquamacs.org
Loading python...done
Loading jit-lock...done





reply via email to

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