all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@lsi.nec.co.jp>
Cc: help-gnu-emacs@gnu.org
Subject: Re: ObjC mode fontification and formatting
Date: 16 Apr 2003 18:29:05 +0900	[thread overview]
Message-ID: <buo1y02dc4e.fsf@mcspd15.ucom.lsi.nec.co.jp> (raw)
In-Reply-To: <87of37fx4q.fsf@mail.raffael.ch>

Raffael Herzog <devnull@raffael.ch> writes:
> But I'd like Emacs to do the following:
> 
> |     [anObject doSomething: str1   // fontify 'anObject' as
> |                                   // variable? (not sure yet)
> |                      with: str2]; // don't fontify 'with'
> |                                   // nor 'str2'
> 
> How can this be done?

I don't really understand what's going on, but with a bit of
experimentation I got the following, which seems to work:

   (c-set-offset 'objc-method-call-cont
                 (lambda (x) (- (c-lineup-ObjC-method-args-2 x) 2)))

There's probably something less kludgey than subtracting 2, but I don't
know what it is...

[c-set-offset is `C-c C-o' in objc-mode]

-Miles
-- 
Somebody has to do something, and it's just incredibly pathetic that it
has to be us.  -- Jerry Garcia

      reply	other threads:[~2003-04-16  9:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-15 18:12 ObjC mode fontification and formatting Raffael Herzog
2003-04-16  9:29 ` Miles Bader [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=buo1y02dc4e.fsf@mcspd15.ucom.lsi.nec.co.jp \
    --to=miles@lsi.nec.co.jp \
    --cc=help-gnu-emacs@gnu.org \
    --cc=miles@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.