help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: calc and comma


From: Andreas Röhler
Subject: Re: calc and comma
Date: Sun, 19 Aug 2007 08:56:11 +0200
User-agent: KMail/1.8.2

Am Sonntag, 19. August 2007 02:05 schrieb Hadron:
> Jay Belanger <jay.p.belanger@gmail.com> writes:
> > Hadron <hadronquark@googlemail.com> writes:
> >> Is there a way to configure calc to accept "," as a unit seperator
> >> german style?
> >
> > It won't accept the comma as a unit separator, but it will display the
> > comma as a unit separator.
> > `d .' (calc-point-char) will prompt you for a new unit separator,
> > so `d . ,' will make a comma the new unit separator.
> > Then `m m' (calc-save-modes) will save the new value in your Calc init
> > file, so next time you use Calc the separator will still be a comma.
> >
> > So typing `10.23' will display `10,23'.
> >
> > Jay
>
> Thanks, but this is driving me nuts since my german keyboard has a ","
> (comma) on the numeric keyboard. Any other ideas?
> _______________________________________________

In

calculator.el

is written:

(defvar calculator-mode-map nil
  "The calculator key map.")

(or calculator-mode-map
  (let ((map (make-sparse-keymap)))

...

(calculator-decimal     "." [kp-decimal])

From there I guess it might be sufficient to change the
sign here, load again, ready.

As I don't use `calc' until now, just that idea. 


Andreas Roehler




reply via email to

[Prev in Thread] Current Thread [Next in Thread]