Package: emacs
Version: 1:30.1+1-9
Severity: normal
Tags: upstream

Dear Maintainer,

   * What led up to the situation?

I'm trying to influence the indentation style for Objective-C methods.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

1. Issued M-x customize-option c-objc-method-arg-unfinished-offset.
2. The default is 4.  I set it to 1 (or anything else, it doesn't matter).
3. Issued "Save for Future Sessions".
4. Opened an Objective-C .m file in a new buffer.
5. Wrote the following code snippet:

[aaaaaaaaa
       bbbbbbb:  cccccc
         ddddd: eeee];

6. Moved the point to the second line.
7. Pressed TAB.

   * What was the outcome of this action?

The second line was indented as such:

[aaaaaaaaa
    bbbbbbb:  cccccc
         ddddd: eeee];

   * What outcome did you expect instead?

The second line to be indented as:

[aaaaaaaaa
 bbbbbbb:  cccccc
         ddddd: eeee];

After all, this is what the documentation says about
c-objc-method-arg-unfinished-offset:

    Offset relative to bracket if first selector is on a new line.

        [aaaaaaaaa
        |<-x->|bbbbbbb:  cccccc
                 ddddd: eeee];

Instead, it appears that the customization is not honored.  Perhaps either
the default value (4) is used, or (more-likely) c-basic-offset is used,
which happens to be also 4 in my setup.

Thanks,
Kaloian


-- System Information:
Debian Release: forky/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.16.9+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages emacs depends on:
ii  emacs-gtk  1:30.1+1-9

emacs recommends no packages.

emacs suggests no packages.

-- no debconf information

Reply via email to