From: Wedler, C. <chr...@sa...> - 2003-08-05 20:03:58
|
Hi Martin, below is some minor patch (vs head revision 5.143): * cc-align.el (c-lineup-math): Don't align on <=, >= and !=. Regards, - Christoph P.S. Thanks for including my previous patch! $ diff -c cc-align.el.orig cc-align.el *** cc-align.el.orig Tue Aug 5 21:54:37 2003 --- cc-align.el Tue Aug 5 21:57:51 2003 *************** *** 711,718 **** (save-excursion (beginning-of-line) (when (c-syntactic-re-search-forward ! ;; This regexp avoids matches on ==. ! "\\(\\=\\|[^=]\\)=\\([^=]\\|$\\)" (c-point 'eol) t t) (setq equalp (- (match-beginning 2) (c-point 'boi)))))) --- 711,719 ---- (save-excursion (beginning-of-line) (when (c-syntactic-re-search-forward ! ;; This regexp avoids matches on ==, <=, >= and !=, but also ! ;; avoids matches on <<= (but who cares about that one) ! "\\(\\=\\|[^=<>!]\\)=\\([^=]\\|$\\)" (c-point 'eol) t t) (setq equalp (- (match-beginning 2) (c-point 'boi)))))) *************** *** 719,725 **** (save-excursion (goto-char startpos) (if (or (if (c-syntactic-re-search-forward ! "\\(\\=\\|[^=]\\)=\\([^=]\\|$\\)" (min endpos (c-point 'eol)) t t) (progn (goto-char (match-beginning 2)) --- 720,726 ---- (save-excursion (goto-char startpos) (if (or (if (c-syntactic-re-search-forward ! "\\(\\=\\|[^=<>!]\\)=\\([^=]\\|$\\)" (min endpos (c-point 'eol)) t t) (progn (goto-char (match-beginning 2)) |