From 6277435b76c79671392bc57f843a61d159759e66 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 6 Dec 2005 16:54:20 +0000 Subject: [PATCH] (c-emacs-features): Don't assume point-min==1. --- lisp/ChangeLog | 14 ++++++++------ lisp/progmodes/cc-defs.el | 10 +++++----- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4bae7d698fe..6ce163d15d1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2005-12-06 Stefan Monnier + + * progmodes/cc-defs.el (c-emacs-features): Don't assume point-min==1. + 2005-12-06 Nozomu Ando (tiny patch) * mail/smtpmail.el (smtpmail-try-auth-methods): Make password @@ -11,8 +15,7 @@ 2005-12-06 Carsten Dominik * textmodes/org.el: (org-occur-highlights): New variable. - (org-highlight-new-match, org-remove-occur-highlights): New - functions. + (org-highlight-new-match, org-remove-occur-highlights): New functions. (org-highlight-sparse-tree-matches): New option. (org-do-occur): New function. (org-get-heading): Make it work also at beginning of line. @@ -22,7 +25,7 @@ (org-select-this-todo-keyword): New variable. (org-todo-list): New command. (org-shiftright, org-shiftleft): New commands. - (org-agenda-todo): Added prefix argument. + (org-agenda-todo): Add prefix argument. (org-show-hierarchy-above): New option. (org-show-todo-tree): Numerical prefix creates tree for specific TODO keyword. @@ -32,14 +35,13 @@ (org-mode): Use `org-outline-level' as value of `outline-level'. (org-cycle): Temporarily switch `outline-regexp' if `org-cycle-include-plain-lists' is non-nil. - (org-start-icalendar-file): Fixed format bug. + (org-start-icalendar-file): Fix format bug. (org-agenda-get-day-entries): Create category table. (org-agenda-get-todos, org-agenda-get-timestamps) (org-agenda-get-deadlines, org-agenda-get-scheduled) (org-agenda-get-blocks): Use `org-get-category'. - (org-context-in-file-links): Renamed from + (org-context-in-file-links): Rename from `org-line-numbers-in-file-links' . - 2005-12-06 Romain Francoise diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el index b68e167ffa0..1bb76c170dc 100644 --- a/lisp/progmodes/cc-defs.el +++ b/lisp/progmodes/cc-defs.el @@ -1400,11 +1400,11 @@ non-nil, a caret is prepended to invert the set." (modify-syntax-entry ?< ".") (modify-syntax-entry ?> ".") (insert "<()>") - (c-mark-<-as-paren 1) - (c-mark->-as-paren 4) - (goto-char 1) + (c-mark-<-as-paren (point-min)) + (c-mark->-as-paren (+ 3 (point-min))) + (goto-char (point-min)) (c-forward-sexp) - (if (= (point) 5) + (if (= (point) (+ 4 (point-min))) (setq list (cons 'syntax-properties list)) (error (concat "CC Mode is incompatible with this version of Emacs - " @@ -2036,5 +2036,5 @@ quoted." (cc-provide 'cc-defs) -;;; arch-tag: 3bb2629d-dd84-4ff0-ad39-584be0fe3cda +;; arch-tag: 3bb2629d-dd84-4ff0-ad39-584be0fe3cda ;;; cc-defs.el ends here -- 2.39.5