]> code.delx.au - gnu-emacs/blobdiff - lisp/textmodes/bibtex.el
Merge from emacs-23
[gnu-emacs] / lisp / textmodes / bibtex.el
index 191ceedf0412854b040ecb4e71ee3452316c694a..c448beb69354db563f34238dd197abbd7f856881 100644 (file)
@@ -2095,7 +2095,7 @@ Formats current entry according to variable `bibtex-entry-format'."
                                 ;; if match not at left subfield boundary...
                                 (if (< (1+ (nth 1 bounds)) (match-beginning 0))
                                     (insert (bibtex-field-right-delimiter) " # ")
-                                  (delete-backward-char 1))))))))
+                                  (delete-char -1))))))))
 
                     ;; use book title of crossref'd entry
                     (if (and (memq 'inherit-booktitle format)
@@ -3028,12 +3028,14 @@ if that value is non-nil.
                 ;; brace-delimited ones
                 )
          nil
-         (font-lock-syntactic-keywords . bibtex-font-lock-syntactic-keywords)
          (font-lock-extra-managed-props . (category))
         (font-lock-mark-block-function
          . (lambda ()
               (set-mark (bibtex-end-of-entry))
              (bibtex-beginning-of-entry)))))
+  (set (make-local-variable 'syntax-propertize-function)
+       (syntax-propertize-via-font-lock
+        bibtex-font-lock-syntactic-keywords))
   (setq imenu-generic-expression
         (list (list nil bibtex-entry-head bibtex-key-in-head))
         imenu-case-fold-search t)