* Can function return drop some elements from list? Bug or feature?
@ 2016-09-16 11:30 Sasha Shashkevich
2016-09-16 13:23 ` Andreas Schwab
0 siblings, 1 reply; 3+ messages in thread
From: Sasha Shashkevich @ 2016-09-16 11:30 UTC (permalink / raw)
To: emacs-devel
Dear all,
I'm not sure if this a elisp bug or known behavior, so I'm posting my question here.
Some forewords first. I'm using irony-mode for editing my code and faced issue when code checker was unable to find some include headers. Pretty much trivial situation, so I've rechecked my environment and it was okay. After some analysis I've found place in irony-mode sources where list with compiling options (used by code checker) was cut at function return. I rewrote how function returns a list and my issue has gone.
More details with code you can find here: https://github.com/Sarcasm/irony-mode/issues/333
I'm not elisp expert, so question to experts: this is a elisp bug or normal behavior (and irony-mode bug), can be list somehow cut on return from function?
Regards,
Alexander
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can function return drop some elements from list? Bug or feature?
2016-09-16 11:30 Can function return drop some elements from list? Bug or feature? Sasha Shashkevich
@ 2016-09-16 13:23 ` Andreas Schwab
2016-09-16 13:34 ` Sasha Shashkevich
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2016-09-16 13:23 UTC (permalink / raw)
To: Sasha Shashkevich; +Cc: emacs-devel
On Sep 16 2016, Sasha Shashkevich <alex@stunpix.com> wrote:
> I'm not elisp expert, so question to experts: this is a elisp bug or
> normal behavior (and irony-mode bug), can be list somehow cut on return
> from function?
You compute the return value from the loop variable e, which changes
each round through the loop.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can function return drop some elements from list? Bug or feature?
2016-09-16 13:23 ` Andreas Schwab
@ 2016-09-16 13:34 ` Sasha Shashkevich
0 siblings, 0 replies; 3+ messages in thread
From: Sasha Shashkevich @ 2016-09-16 13:34 UTC (permalink / raw)
To: Andreas Schwab; +Cc: emacs-devel
>> I'm not elisp expert, so question to experts: this is a elisp bug or
>> normal behavior (and irony-mode bug), can be list somehow cut on return
>> from function?
>
> You compute the return value from the loop variable e, which changes
> each round through the loop.
Definitely. How I couldn't see that? Question is closed.
Thank you!
Alexander.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-09-16 13:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-16 11:30 Can function return drop some elements from list? Bug or feature? Sasha Shashkevich
2016-09-16 13:23 ` Andreas Schwab
2016-09-16 13:34 ` Sasha Shashkevich
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.