unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* cl-lexical-let?
@ 2015-07-16 17:12 Stephen Leake
  2015-07-16 17:19 ` cl-lexical-let? Dmitry Gutov
  2015-07-18 17:43 ` State of Java support in JDEE, was: cl-lexical-let? Dmitry Gutov
  0 siblings, 2 replies; 5+ messages in thread
From: Stephen Leake @ 2015-07-16 17:12 UTC (permalink / raw)
  To: emacs-devel

I'm updating jdee for emacs 25.

It uses the `lexical-let' function from cl, so I'm looking to replace
that with something, but there is no `cl-lexical-let'.

Here is a typical use:


(defun jde-jeval-cm (java-expr &optional buffer-head finish-fcn)
...
       (lexical-let ((finish finish-fcn))
	  (setq compilation-finish-functions
		(lambda (buf msg)
		  (funcall finish buf msg)
		  (setq compilation-finish-functions nil)))))
...


I think if I set lexical-binding t for the file, and change this to "(let
...", then this will work. Is that correct?

Is there any other replacement, if for some reason we don't want to set
lexical-binding t?

-- 
-- Stephe



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: cl-lexical-let?
  2015-07-16 17:12 cl-lexical-let? Stephen Leake
@ 2015-07-16 17:19 ` Dmitry Gutov
  2015-07-18 17:43 ` State of Java support in JDEE, was: cl-lexical-let? Dmitry Gutov
  1 sibling, 0 replies; 5+ messages in thread
From: Dmitry Gutov @ 2015-07-16 17:19 UTC (permalink / raw)
  To: Stephen Leake, emacs-devel

On 07/16/2015 08:12 PM, Stephen Leake wrote:

> I think if I set lexical-binding t for the file, and change this to "(let
> ...", then this will work. Is that correct?

Yes.

> Is there any other replacement, if for some reason we don't want to set
> lexical-binding t?

Hopefully, there won't be any strong reasons not to set it.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* State of Java support in JDEE, was: Re: cl-lexical-let?
  2015-07-16 17:12 cl-lexical-let? Stephen Leake
  2015-07-16 17:19 ` cl-lexical-let? Dmitry Gutov
@ 2015-07-18 17:43 ` Dmitry Gutov
  2015-07-18 19:27   ` Stephen Leake
  1 sibling, 1 reply; 5+ messages in thread
From: Dmitry Gutov @ 2015-07-18 17:43 UTC (permalink / raw)
  To: Stephen Leake, emacs-devel

Hi again, Stephen,

On 07/16/2015 08:12 PM, Stephen Leake wrote:
> I'm updating jdee for emacs 25.

Since you doing this, you probably know: is there any kind of support 
now for language features of Java versions above 1.4, in JDEE?

 From what I've read before, it uses BeanShell (for completion, at 
least), and the latter didn't support generics.

Java 7 added a "smarter" type inference for generic instantiation; Java 
8 added lambda functions. It seems that JDEE should have even more 
difficulty handling modern Java code.

Any news there?

Thanks in advance,
Dmitry.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: State of Java support in JDEE, was: Re: cl-lexical-let?
  2015-07-18 17:43 ` State of Java support in JDEE, was: cl-lexical-let? Dmitry Gutov
@ 2015-07-18 19:27   ` Stephen Leake
  2015-07-18 19:33     ` Dmitry Gutov
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Leake @ 2015-07-18 19:27 UTC (permalink / raw)
  To: emacs-devel

Dmitry Gutov <dgutov@yandex.ru> writes:

> Hi again, Stephen,
>
> On 07/16/2015 08:12 PM, Stephen Leake wrote:
>> I'm updating jdee for emacs 25.
>
> Since you doing this, you probably know: is there any kind of support
> now for language features of Java versions above 1.4, in JDEE?

Not yet, but there is now interest in adding that.

JDEE recently moved to a git repository on github
https://github.com/jdee-emacs/jdee , and several people have expressed
interest in working on it.

> From what I've read before, it uses BeanShell (for completion, at
> least), and the latter didn't support generics.

Yes. The plan is to replace that with clojure.

-- 
-- Stephe



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: State of Java support in JDEE, was: Re: cl-lexical-let?
  2015-07-18 19:27   ` Stephen Leake
@ 2015-07-18 19:33     ` Dmitry Gutov
  0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Gutov @ 2015-07-18 19:33 UTC (permalink / raw)
  To: Stephen Leake, emacs-devel

On 07/18/2015 10:27 PM, Stephen Leake wrote:

> Not yet, but there is now interest in adding that.
>
> JDEE recently moved to a git repository on github
> https://github.com/jdee-emacs/jdee , and several people have expressed
> interest in working on it.

Terrific, thanks for the news.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-18 19:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-16 17:12 cl-lexical-let? Stephen Leake
2015-07-16 17:19 ` cl-lexical-let? Dmitry Gutov
2015-07-18 17:43 ` State of Java support in JDEE, was: cl-lexical-let? Dmitry Gutov
2015-07-18 19:27   ` Stephen Leake
2015-07-18 19:33     ` Dmitry Gutov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).