bug-gnu-emacs
[Top][All Lists]
Advanced

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

CC Mode 5.27 (); broken c-lineup-math


From: Eduard Martinescu
Subject: CC Mode 5.27 (); broken c-lineup-math
Date: Wed, 21 Feb 2001 10:39:26 -0500

c-linup-math fails to lineup some multi line statements in Java mode.
Sample code is as follows:

NOTE: The class will not compile since I missed a bunch of imports, etc
but does denote the indentation problem.

public class Ed
{
2  void test ()
  {
    String a = "Hello"
               + "goodby        e"
               + "today"
               + "Hello there everybody";
  }
  public RidesOn[] getRidesAsDependent (String label)
  {
    String ridesOnStatus = (isBeingModified() ? RidesOn.PENDING
                            : RidesOn.INSERVICE);
    String query = "select rides_on_id from dp_rides_on where depending_id="
                   + productID
+ " and rides_on_status='" + ridesOnStatus
+ "' and riding_type = '" + label + "'";
    RidesOn[] rides = (RidesOn[])arrayFromQuery(RidesOn.class, new RidesOn[0],
                                                query);
    debug(this.toString()+" found " + rides.length
          + " ridesOn as dependent for " + label);
    return rides;
  }
}


Emacs  : XEmacs 21.1 "20 Minutes to Nikko" [Lucid] (i686-pc-linux) of Tue Jun 15
1999 on gothmog
Package: CC Mode 5.27 ()
Buffer Style: my-java

c-emacs-features: (8-bit)

current state:
==============
(setq
 c-basic-offset 2
 c-comment-only-line-offset '(0 . 0)
 c-block-comment-prefix "* "
 c-comment-prefix-regexp "//+\\|\\**"
 c-cleanup-list '(scope-operator empty-defun-braces defun-close-semi)
 c-hanging-braces-alist '((substatement-open after) (brace-list-open)
                          (block-close c-snug-do-while)
                          (extern-lang-open after))
 c-hanging-colons-alist '((member-init-intro after) (inher-intro after)
                          (case-label after) (label after)
                          (access-label after))
 c-hanging-semi&comma-criteria '(c-semi&comma-inside-parenlist)
 c-backslash-column 48
 c-label-minimum-indentation 1
 c-offsets-alist '((string . c-lineup-dont-change)
                   (c . c-lineup-C-comments)
                   (defun-open . 0)
                   (defun-close . 0)
                   (defun-block-intro . +)
                   (class-open . 0)
                   (class-close . 0)
                   (inline-close . 0)
                   (knr-argdecl . 0)
                   (topmost-intro . 0)
                   (member-init-intro . +)
                   (member-init-cont . c-lineup-multi-inher)
                   (inher-intro . +)
                   (block-open . 0)
                   (block-close . 0)
                   (brace-list-open . 0)
                   (brace-list-close . 0)
                   (brace-list-intro . +)
                   (brace-list-entry . 0)
                   (brace-entry-open . 0)
                   (statement . 0)
                   (statement-case-intro . +)
                   (substatement . +)
                   (case-label . 0)
                   (do-while-closure . 0)
                   (else-clause . 0)
                   (catch-clause . 0)
                   (comment-intro . c-lineup-comment)
                   (arglist-cont . 0)
                   (arglist-cont-nonempty . c-lineup-arglist)
                   (stream-op . c-lineup-streamop)
                   (inclass . +)
                   (cpp-macro . -1000)
                   (cpp-macro-cont . c-lineup-dont-change)
                   (friend . 0)
                   (objc-method-intro . -1000)
                   (objc-method-args-cont . c-lineup-ObjC-method-args)
                   (objc-method-call-cont . c-lineup-ObjC-method-call)
                   (extern-lang-open . 0)
                   (extern-lang-close . 0)
                   (inextern-lang . +)
                   (namespace-open . 0)
                   (namespace-close . 0)
                   (innamespace . +)
                   (template-args-cont c-lineup-template-args +)
                   (inlambda . c-lineup-inexpr-block)
                   (lambda-intro-cont . +)
                   (inexpr-statement . 0)
                   (inexpr-class . +)
                   (inline-open . 0)
                   (topmost-intro-cont . +)
                   (statement-block-intro . +)
                   (knr-argdecl-intro . 4)
                   (substatement-open . +)
                   (label . 0)
                   (statement-case-open . +)
                   (statement-cont . c-lineup-math)
                   (arglist-intro . c-lineup-arglist-intro-after-paren)
                   (arglist-close . c-lineup-arglist)
                   (access-label . 0)
                   (inher-cont . c-lineup-java-inher)
                   (func-decl-cont . c-lineup-java-throws)
                   )
 c-delete-function 'delete-char
 c-electric-pound-behavior '(quote alignleft)
 c-indent-comments-syntactically-p nil
 c-tab-always-indent 1
 defun-prompt-regexp nil
 tab-width 8
 comment-column 32
 parse-sexp-ignore-comments t
 signal-error-on-buffer-boundary t
 auto-fill-function nil
 comment-multi-line t
 comment-start-skip "/\\*+ *\\|//+ *"
 fill-prefix nil
 paragraph-start "[     ]*\\(//+\\|\\**\\)?[
]*\\(@\\(author\\|deprecated\\|exception\\|param\\|return\\|s\\(e\\(e\\|rial\\(\\|Data\\|Field\\)\\)\\|ince\\)\\|throws\\|version\\)\\|$\\)\\|^
"
 adaptive-fill-mode t
 adaptive-fill-regexp "[        ]*\\(//+\\|\\**\\)?[    ]*\\([  ]*\\([#;>*]+
+\\)?\\)"
 )
-- 
 Eduard Martinescu       address@hidden
 Principal Software Engineer     Phone: (716) 777-7259
 FIT                               FAX: (716) 777-7029
 180 S. Clinton Ave,       Alpha Pager: (800) 864-8444 #1829605
 Rochester NY 14646-0200 Numeric Pager: (888) 653-1866



reply via email to

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