[Top][All Lists]

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

Wrong byte compiler warning.

From: David Kastrup
Subject: Wrong byte compiler warning.
Date: 15 Feb 2003 21:23:09 +0100

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list.

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

AUCTeX contains the following definition in font-latex.el:
(defun font-latex-find-matching-close (openchar closechar)
  "Skip over matching pairs of { } or [ ], ignoring comments"
  (let ((parse-sexp-ignore-comments t) ; scan-sexps ignores comments
        (init-point (point))
    (if (condition-case nil
            (goto-char (scan-sexps (point) 1))
        ;; No error code.  See if closechar is quoted
        (if (save-excursion (backward-char 1) (= (preceding-char) ?\\))
            (setq status nil)
          (setq status t))
      ;; Terminated in error -- Try ourselves
      (setq status nil))
    (if status
      (goto-char init-point)
      (let ((target)
            (mycount 1))
            (forward-char 1)
            (while (and (> mycount 0)
                           (concat "["
                                   ;; closechar might be ]
                                   ;; and therefor must be first in regexp
                                   (char-to-string closechar)
                                   (char-to-string openchar)
                           nil t)))
                (forward-line 1))
               ((save-excursion (backward-char 1) (= (preceding-char) ?\\))
                (setq mycount (if (= (preceding-char) openchar)
                                  (+ mycount 1)
                                (- mycount 1))))))
            (setq target (point))
            (if (not (= mycount 0))
        (if (= mycount 0)
            (goto-char target))))))

The byte compiler gives a complaint
font-latex.el:615:49:Warning: `=' called for effect

I can't see any such occurence.  Perhaps the save-excursion calls are
confusing?  Also the indicated line number is that of the start of
the function, whereas the column number is that of where the actual
problem is.  Probably.

In GNU Emacs (i686-pc-linux-gnu)
 of 2003-02-06 on lola.goethe.zz
configured using `configure '--with-x-toolkit=gtk' 

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: en_US
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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