Open Source Telephony
 help / color / mirror / Atom feed
From: Kalle Valo <kalle.valo@canonical.com>
To: ofono@ofono.org
Subject: Re: [PATCH v3 2/2] huawei: add gprs context
Date: Thu, 05 Aug 2010 08:54:14 +0300	[thread overview]
Message-ID: <87fwytwqnt.fsf@potku.valot.fi> (raw)
In-Reply-To: <1280951948.19261.63.camel@localhost.localdomain>

[-- Attachment #1: Type: text/plain, Size: 1481 bytes --]

Inaky Perez-Gonzalez <inaky@linux.intel.com> writes:

> Hi Kale

Hi Inaky,

> On Thu, 2010-05-20 at 10:35 +0300, Kalle Valo wrote: 
>> Denis Kenzior <denkenz@gmail.com> writes:
>> 
>> > No mixing of tabs & spaces for indentation
>> 
>> Fixed.
>> 
>> Oh man, I have to fix my emacs settings :/
>
> Did you find a set of emacs offset settings to get to oFono's liking?
> I've been fiddling with it for a while, but keep alking in circles
> around it. It's been too long since I've done emacs config :(

This is my setup:

; from linux/Documentation/CodingStyle
(defun c-lineup-arglist-tabs-only (ignored)
  "Line up argument lists by tabs, not spaces"
  (let* ((anchor (c-langelem-pos c-syntactic-element))
	 (column (c-langelem-2nd-pos c-syntactic-element))
	 (offset (- (1+ column) anchor))
	 (steps (floor offset c-basic-offset)))
    (* (max steps 1)
       c-basic-offset)))

(add-hook 'c-mode-common-hook
          (lambda ()
            ;; Add kernel style
            (c-add-style
             "linux-tabs-only"
             '("linux" (c-offsets-alist
                        (arglist-cont-nonempty
                         c-lineup-gcc-asm-reg
                         c-lineup-arglist-tabs-only))))))

And whenever I start editing ofono or connman, I run command "C-c .
linux-tabs-only" choose the style. But it's not perfect yet, for example
I need to manually add tabs when having multi-line function calls.

-- 
Kalle Valo

  reply	other threads:[~2010-08-05  5:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-19 14:06 [PATCH v3 0/2] Huawei GPRS support Kalle Valo
2010-05-19 14:06 ` [PATCH v3 1/2] huawei: detect SecondaryDevice which is used for events Kalle Valo
2010-05-19 13:40   ` Denis Kenzior
2010-05-20  7:15     ` Kalle Valo
2010-05-19 14:06 ` [PATCH v3 2/2] huawei: add gprs context Kalle Valo
2010-05-19 13:44   ` Denis Kenzior
2010-05-20  7:35     ` Kalle Valo
2010-08-04 19:59       ` Inaky Perez-Gonzalez
2010-08-05  5:54         ` Kalle Valo [this message]
2010-08-05 17:29           ` Inaky Perez-Gonzalez
2010-08-06  7:26             ` Kalle Valo
2010-08-11  4:56               ` Inaky Perez-Gonzalez

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=87fwytwqnt.fsf@potku.valot.fi \
    --to=kalle.valo@canonical.com \
    --cc=ofono@ofono.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox