2014-05-11 Stefan Monnier <monnier@iro.umontreal.ca>
+ * info.el (Info-quoted): New face.
+ (Info-mode-font-lock-keywords): New var.
+ (Info-mode): Use it.
+
* emacs-lisp/lisp-mode.el (preceding-sexp): Exclude leading "," which
are a hindrance for C-x C-e.
(diary-chinese-insert-yearly-entry): New commands to insert
Chinese diary entries.
- * calendar/diary-lib.el (diary-font-lock-keywords): Support
- font-locking Chinese dates.
+ * calendar/diary-lib.el (diary-font-lock-keywords):
+ Support font-locking Chinese dates.
* calendar/cal-menu.el (cal-menu-diary-menu): Add entries for
inserting Chinese diary entries.
- * calendar/calendar.el (diary-chinese-entry-symbol): New
- customizable variable.
+ * calendar/calendar.el (diary-chinese-entry-symbol):
+ New customizable variable.
(calendar-mode-map): Add bindings for inserting Chinese diary
entries.
incorrectness of position adjustments when undoing in region.
(Bug#17235)
(undo-elt-crosses-region): Make obsolete.
- (undo-adjust-elt, undo-adjust-beg-end, undo-adjust-pos): New
- functions to adjust positions using undo-deltas.
+ (undo-adjust-elt, undo-adjust-beg-end, undo-adjust-pos):
+ New functions to adjust positions using undo-deltas.
2014-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
st)
"Syntax table used in `Info-mode'.")
+(defface Info-quoted
+ '((t :family "courier"))
+ "Face used for quoted elements.")
+
+(defvar Info-mode-font-lock-keywords
+ '(("‘\\([^’]*\\)’" (1 'Info-quoted))))
+
;; Autoload cookie needed by desktop.el
;;;###autoload
-(define-derived-mode Info-mode nil "Info"
+(define-derived-mode Info-mode nil "Info" ;FIXME: Derive from special-mode?
"Info mode provides commands for browsing through the Info documentation tree.
Documentation in Info is divided into \"nodes\", each of which discusses
one topic and contains references to other nodes which discuss related
(setq-local isearch-push-state-function #'Info-isearch-push-state)
(setq-local isearch-filter-predicate #'Info-isearch-filter)
(setq-local revert-buffer-function #'Info-revert-buffer-function)
+ (setq-local font-lock-defaults '(Info-mode-font-lock-keywords t t))
(Info-set-mode-line)
(setq-local bookmark-make-record-function #'Info-bookmark-make-record))