GNU bug report logs -
#12263
24.2; c-at-expression-start-p
Previous Next
Reported by: Leo <sdl.web <at> gmail.com>
Date: Thu, 23 Aug 2012 01:34:02 UTC
Severity: minor
Tags: confirmed
Found in versions 26.1, 25.0.95, 27.0.50, 24.2
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12263 in the body.
You can then email your comments to 12263 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-cc-mode <at> gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#12263
; Package
emacs
.
(Thu, 23 Aug 2012 01:34:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Leo <sdl.web <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-cc-mode <at> gnu.org, bug-gnu-emacs <at> gnu.org
.
(Thu, 23 Aug 2012 01:34:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
1. Emacs -q t.m
2. Move point to the first '-'
3. M-: (c-at-expression-start-p)
4. Move point to the second '-'
5. M-: (c-at-expression-start-p)
step 3 return nil but step 5 returns non-nil. It appears that every
first method declaration fails c-at-expression-start-p.
Leo
[t.m (text/plain, attachment)]
Added tag(s) confirmed.
Request was from
npostavs <at> gmail.com
to
control <at> debbugs.gnu.org
.
(Fri, 01 Jul 2016 01:34:02 GMT)
Full text and
rfc822 format available.
bug Marked as found in versions 25.0.95.
Request was from
npostavs <at> gmail.com
to
control <at> debbugs.gnu.org
.
(Fri, 01 Jul 2016 01:34:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#12263
; Package
emacs,cc-mode
.
(Wed, 30 Oct 2019 23:23:02 GMT)
Full text and
rfc822 format available.
Message #12 received at 12263 <at> debbugs.gnu.org (full text, mbox):
tags 12263 + confirmed
found 12263 26.1
found 12263 27.0.50
thanks
Leo <sdl.web <at> gmail.com> writes:
> 1. Emacs -q t.m
> 2. Move point to the first '-'
> 3. M-: (c-at-expression-start-p)
> 4. Move point to the second '-'
> 5. M-: (c-at-expression-start-p)
>
> step 3 return nil but step 5 returns non-nil. It appears that every
> first method declaration fails c-at-expression-start-p.
>
> Leo
>
> @interface ZXITFReader : ZXOneDReader
>
> - (NSArray *)decodeStart:(ZXBitArray *)row;
> - (NSArray *)decodeEnd:(ZXBitArray *)row;
>
> @end
I can reproduce this on current master and 26.1.
Best regards,
Stefan Kangas
bug Marked as found in versions 26.1.
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Wed, 30 Oct 2019 23:23:02 GMT)
Full text and
rfc822 format available.
bug Marked as found in versions 27.0.50.
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Wed, 30 Oct 2019 23:23:02 GMT)
Full text and
rfc822 format available.
Severity set to 'minor' from 'normal'
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Wed, 30 Oct 2019 23:33:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#12263
; Package
emacs,cc-mode
.
(Fri, 01 Nov 2019 11:27:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 12263 <at> debbugs.gnu.org (full text, mbox):
Hello, Leo and Stefan.
On Thu, Oct 31, 2019 at 00:21:41 +0100, Stefan Kangas wrote:
> tags 12263 + confirmed
> found 12263 26.1
> found 12263 27.0.50
> thanks
> Leo <sdl.web <at> gmail.com> writes:
> > 1. Emacs -q t.m
> > 2. Move point to the first '-'
> > 3. M-: (c-at-expression-start-p)
> > 4. Move point to the second '-'
> > 5. M-: (c-at-expression-start-p)
> > step 3 return nil but step 5 returns non-nil. It appears that every
> > first method declaration fails c-at-expression-start-p.
> > Leo
> > @interface ZXITFReader : ZXOneDReader
> > - (NSArray *)decodeStart:(ZXBitArray *)row;
> > - (NSArray *)decodeEnd:(ZXBitArray *)row;
> > @end
> I can reproduce this on current master and 26.1.
Yes.
c-at-expression-start-p is a strange function. It is not interactive,
yet is not used at all by CC Mode. A web search found no uses of it
(though I don't really trust web searches).
The function's documentation also defines "expression" somewhat
idiosyncratically as:
"An \"expression\" here is a bit different from the normal language
grammar sense: It's any sequence of expression tokens except commas,
unless they are enclosed inside parentheses of some kind."
. With that definition of "expression", there is no bug here, since
there is nothing before that "-" to terminate any "previous expression".
However, this redefinition of "expression" hardly seems defendable - it
seems to have been made mainly for the convenience in coding.
Leo, can you remember at all what (if anything) you were using this
function for?
Given that it appears to be wholly unused, I'm inclined to mark this
function as obsolete or deprecated, and then to remove it later. It
doesn't seem to be worth the trouble to make it work properly. The same
might also apply to the function c-at-statement-start-p.
> Best regards,
> Stefan Kangas
--
Alan Mackenzie (Nuremberg, Germany).
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#12263
; Package
emacs,cc-mode
.
(Fri, 01 Nov 2019 13:30:03 GMT)
Full text and
rfc822 format available.
Message #24 received at 12263 <at> debbugs.gnu.org (full text, mbox):
> On 1 Nov 2019, at 19:26, Alan Mackenzie <acm <at> muc.de> wrote:
>
> Leo, can you remember at all what (if anything) you were using this
> function for?
>
> Given that it appears to be wholly unused, I'm inclined to mark this
> function as obsolete or deprecated, and then to remove it later. It
> doesn't seem to be worth the trouble to make it work properly. The same
> might also apply to the function c-at-statement-start-p.
This sounds like a plan. I will check what I use it for in 2-3 days when I will have proper internet connection. But I think I can live with the breakage.
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#12263
; Package
emacs,cc-mode
.
(Sun, 03 Nov 2019 02:58:02 GMT)
Full text and
rfc822 format available.
Message #27 received at 12263 <at> debbugs.gnu.org (full text, mbox):
On 2019-11-01 11:26 +0000, Alan Mackenzie wrote:
> Leo, can you remember at all what (if anything) you were using this
> function for?
I used it once in my init script. But
> Given that it appears to be wholly unused, I'm inclined to mark this
> function as obsolete or deprecated, and then to remove it later. It
> doesn't seem to be worth the trouble to make it work properly. The same
> might also apply to the function c-at-statement-start-p.
I can live with this change. Thanks for asking.
Leo
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#12263
; Package
emacs,cc-mode
.
(Sun, 03 Nov 2019 10:12:02 GMT)
Full text and
rfc822 format available.
Message #30 received at 12263 <at> debbugs.gnu.org (full text, mbox):
Alan Mackenzie <acm <at> muc.de> writes:
> Given that it appears to be wholly unused, I'm inclined to mark this
> function as obsolete or deprecated, and then to remove it later. It
> doesn't seem to be worth the trouble to make it work properly. The same
> might also apply to the function c-at-statement-start-p.
Sounds good to me.
Best regards,
Stefan Kangas
Reply sent
to
Alan Mackenzie <acm <at> muc.de>
:
You have taken responsibility.
(Sat, 04 Jul 2020 16:44:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Leo <sdl.web <at> gmail.com>
:
bug acknowledged by developer.
(Sat, 04 Jul 2020 16:44:02 GMT)
Full text and
rfc822 format available.
Message #35 received at 12263-done <at> debbugs.gnu.org (full text, mbox):
Hello, Leo.
On Sun, Nov 03, 2019 at 10:57:25 +0800, Leo Liu wrote:
> On 2019-11-01 11:26 +0000, Alan Mackenzie wrote:
> > Leo, can you remember at all what (if anything) you were using this
> > function for?
> I used it once in my init script. But
> > Given that it appears to be wholly unused, I'm inclined to mark this
> > function as obsolete or deprecated, and then to remove it later. It
> > doesn't seem to be worth the trouble to make it work properly. The same
> > might also apply to the function c-at-statement-start-p.
I've marked c-at-expression-start-p as obsolete. I've got rid of a
formerly obsolete function entirely (might as well).
c-at-statement-start-p is actually used quite a bit in CC Mode, so it
stays. ;-)
> I can live with this change. Thanks for asking.
I'm closing the bug with this post.
> Leo
--
Alan Mackenzie (Nuremberg, Germany).
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 02 Aug 2020 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 328 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.