[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cc-mode Objective C method names
From: |
Eli Zaretskii |
Subject: |
Re: cc-mode Objective C method names |
Date: |
Wed, 01 Jan 2020 18:41:05 +0200 |
> Date: Wed, 1 Jan 2020 11:27:57 +0000
> From: Alan Third <address@hidden>
>
> It appears to work for me, but I’m not great at Emacs lisp so I
> thought it best to run this by the mailing list in case I’ve made any
> boneheaded errors.
A few minor nits below:
> + (type (buffer-substring-no-properties (point) (+ (point) 1)))
I'd use instead
(type (char-after))
(You'll also need to change the format to use %c instead of %s.)
> + (let ((name ""))
There's no need to initialize 'name' to an empty string, because
'append' can DTRT with nil as well:
(append nil "foo") => "foo"
So just
(let (name)
should do.