all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Huchler <stefan.huchler@mail.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Strange eval behaviour
Date: Fri, 18 Nov 2016 17:51:17 +0100	[thread overview]
Message-ID: <87shqo68ai.fsf@mail.de> (raw)
In-Reply-To: 878tshjyvy.fsf@web.de

Michael Heerdegen <michael_heerdegen@web.de> writes:

> Stefan Huchler <stefan.huchler@mail.de> writes:
>
> In case of a macro, it depends on whether the macro is defined when
> compiling.  So you don't get a warning necessarily.  To avoid missing
> dependencies, it's helpful to compile from a separate emacs instance
> (emacs -Q).

yes thats usefull thanks for that tipp again! But to really test it I
think I have to set the server address absolute else I need a
configuration to really test the thing.

Also I am a bit relactend to open to much emacs instances cause I work
in exwm which is basicly emacs as window manager, so I start emacs out
of emacs :) Which itself could theoreticly cause problems. :)


> AFAIR, you had a strange handling of variables in your code: some
> functions had used free variables that were declared nowhere.  Compiling
> is a good way to reveal such problems.

Yes I am a bit a elisp noob but it gets better, so I used to only use
setq and not let(*) at all, so its a bad habbit also in many other
languages you dont have or use so much let constructs.

But te point is, as long as I dont come in conflict with some system
variables it should still work, its no good praktise but it should not
cause bugs. Or do you see how that in that case can create this
behaviour.

I will clean that up if all other bugs are fixed, I even will break that
into 2 commits cause my kodi-remote-keyboard is more solid then the
other mode I have where I can get file lists of series/... .

Its a pretty big patch much bigger than the last version on github was :)




> No.

Well then I did not find the real causation of the problem apperently
cause that was the thing that seemed to make here the difference no .elc
restart does not work, with .elc restart and it works.


> Yes.  It is now more or less consent now that the cl library should not
> be loaded at run-time.  Please use cl-lib and the according cl- prefixed
> functions instead.

so like that:
(require 'cl-lib)
(require 'cl-macs)

?


> No, Stefan suggested to compile so that you get warnings that help you
> find the problems in your code.  Compiling is not required to run code.
> Compiled code is just running faster, and the compiler produces
> excellent warnings.

yes that was my idea about bytecompiling in general not elisp specific,
but if macros dont throw errors cause stuff only get evaluated if its
bytecompiled thats really hard to debug, or it seems at least to me :)




  reply	other threads:[~2016-11-18 16:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-13 21:28 Strange eval behaviour Stefan Huchler
2016-11-14 15:04 ` Stefan Monnier
2016-11-15  1:55   ` Stefan Huchler
2016-11-18  2:38     ` Michael Heerdegen
2016-11-18 16:51       ` Stefan Huchler [this message]
2016-11-18 23:19         ` Michael Heerdegen
2016-11-22 23:57           ` Stefan Huchler
2016-11-23  9:19             ` Michael Heerdegen
2016-11-23 14:20               ` Stefan Huchler
2016-11-18 17:00       ` Stefan Huchler
2016-11-18 23:35         ` Michael Heerdegen
2016-11-22 14:43           ` Stefan Huchler
2016-11-27  4:25           ` Stefan Huchler
2016-11-27  4:29           ` Stefan Huchler

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=87shqo68ai.fsf@mail.de \
    --to=stefan.huchler@mail.de \
    --cc=help-gnu-emacs@gnu.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.
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.