GNU bug report logs - #13975
24.3; scheme-mode: Treat Greek letter `λ' as `lambda'

Previous Next

Package: emacs;

Reported by: simenheg <at> ifi.uio.no (Simen Heggestøyl)

Date: Sat, 16 Mar 2013 12:53:01 UTC

Severity: normal

Found in version 24.3

Done: Leo Liu <sdl.web <at> gmail.com>

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 13975 in the body.
You can then email your comments to 13975 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13975; Package emacs. (Sat, 16 Mar 2013 12:53:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to simenheg <at> ifi.uio.no (Simen Heggestøyl):
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 16 Mar 2013 12:53:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: simenheg <at> ifi.uio.no (Simen Heggestøyl)
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; scheme-mode: Treat Greek letter `λ' as `lambda'
Date: Sat, 16 Mar 2013 13:50:53 +0100
It would be convenient if scheme-mode had the same indentation rules and
font face for `lambda' and the Greek letter `λ'.

I.e., we want this:

    (lambda (x)
      (* x x))

and this:

    (λ (x)
      (* x x))

Instead of this:

    (λ (x)
       (* x x))

Popular Schemes has had λ support for some time now:

  * Racket supports λ (since March 2005)
  * Guile supports λ (since February 2011)
  * Geiser has a key binding for inserting λ (since February 2013)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13975; Package emacs. (Sat, 16 Mar 2013 13:14:02 GMT) Full text and rfc822 format available.

Message #8 received at 13975 <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: simenheg <at> ifi.uio.no (Simen Heggestøyl)
Cc: 13975 <at> debbugs.gnu.org
Subject: Re: bug#13975: 24.3; scheme-mode: Treat Greek letter
	`λ' as `lambda'
Date: Sat, 16 Mar 2013 21:12:04 +0800
On 2013-03-16 20:50 +0800, Simen Heggestøyl wrote:
>     (λ (x)
>       (* x x))

I check drracket and the default indentation is as the above. I think we
should teach emacs to do it too.

diff --git a/lisp/progmodes/scheme.el b/lisp/progmodes/scheme.el
index a7dbc411..9dce5e6b 100644
--- a/lisp/progmodes/scheme.el
+++ b/lisp/progmodes/scheme.el
@@ -410,6 +410,7 @@ (put 'with-mode 'scheme-indent-function 1)
 (put 'make 'scheme-indent-function 1)
 (put 'style 'scheme-indent-function 1)
 (put 'root 'scheme-indent-function 1)
+(put 'λ 'scheme-indent-function 1)
 
 (defvar dsssl-font-lock-keywords
   (eval-when-compile




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13975; Package emacs. (Sat, 16 Mar 2013 13:53:01 GMT) Full text and rfc822 format available.

Message #11 received at 13975 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 13975 <at> debbugs.gnu.org,
	Simen Heggestøyl <simenheg <at> ifi.uio.no>
Subject: Re: bug#13975: 24.3; scheme-mode: Treat Greek letter `λ' as `lambda'
Date: Sat, 16 Mar 2013 09:51:00 -0400
> +(put 'λ 'scheme-indent-function 1)
 
Go for it,


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13975; Package emacs. (Sat, 16 Mar 2013 14:43:01 GMT) Full text and rfc822 format available.

Message #14 received at 13975 <at> debbugs.gnu.org (full text, mbox):

From: simenheg <at> ifi.uio.no (Simen Heggestøyl)
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: sdl.web <at> gmail.com, 13975 <at> debbugs.gnu.org
Subject: Re: bug#13975: 24.3; scheme-mode: Treat Greek letter `λ' as `lambda'
Date: Sat, 16 Mar 2013 15:41:59 +0100
Can we do this for syntax highlighting as well?

diff --git a/tmp/scheme.el b/tmp/emacs-24.3/lisp/progmodes/scheme.el
index bfcf44b..a7dbc41 100644
--- a/tmp/scheme.el
+++ b/tmp/emacs-24.3/lisp/progmodes/scheme.el
@@ -310,7 +310,7 @@ See `run-hooks'."
 	"(" (regexp-opt
 	     '("begin" "call-with-current-continuation" "call/cc"
 	       "call-with-input-file" "call-with-output-file" "case" "cond"
-	       "do" "else" "for-each" "if" "lambda" "λ"
+	       "do" "else" "for-each" "if" "lambda"
 	       "let" "let*" "let-syntax" "letrec" "letrec-syntax"
 	       ;; SRFI 11 usage comes up often enough.
 	       "let-values" "let*-values"

Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>> +(put 'λ 'scheme-indent-function 1)
>  
> Go for it,
>
>
>         Stefan




Reply sent to Leo Liu <sdl.web <at> gmail.com>:
You have taken responsibility. (Sat, 16 Mar 2013 15:31:01 GMT) Full text and rfc822 format available.

Notification sent to simenheg <at> ifi.uio.no (Simen Heggestøyl):
bug acknowledged by developer. (Sat, 16 Mar 2013 15:31:02 GMT) Full text and rfc822 format available.

Message #19 received at 13975-done <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: simenheg <at> ifi.uio.no (Simen Heggestøyl)
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 13975-done <at> debbugs.gnu.org
Subject: Re: bug#13975: 24.3; scheme-mode: Treat Greek letter
	`λ' as `lambda'
Date: Sat, 16 Mar 2013 23:28:41 +0800
Fixed in emacs-24.

Leo




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 14 Apr 2013 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 68 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.