all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* calc and comma
@ 2007-08-18 23:21 Hadron
  2007-08-18 23:52 ` Jay Belanger
  0 siblings, 1 reply; 4+ messages in thread
From: Hadron @ 2007-08-18 23:21 UTC (permalink / raw)
  To: help-gnu-emacs


Is there a way to configure calc to accept "," as a unit seperator
german style?

e.g

10,23

is 10 euro and 23 cents.

My OS is in English.

-- 
Ego sum ens omnipotens.

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

* Re: calc and comma
  2007-08-18 23:21 calc and comma Hadron
@ 2007-08-18 23:52 ` Jay Belanger
  2007-08-19  0:05   ` Hadron
  0 siblings, 1 reply; 4+ messages in thread
From: Jay Belanger @ 2007-08-18 23:52 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: jay.p.belanger


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

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

* Re: calc and comma
  2007-08-18 23:52 ` Jay Belanger
@ 2007-08-19  0:05   ` Hadron
  2007-08-19  6:56     ` Andreas Röhler
  0 siblings, 1 reply; 4+ messages in thread
From: Hadron @ 2007-08-19  0:05 UTC (permalink / raw)
  To: help-gnu-emacs

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?

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

* Re: calc and comma
  2007-08-19  0:05   ` Hadron
@ 2007-08-19  6:56     ` Andreas Röhler
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Röhler @ 2007-08-19  6:56 UTC (permalink / raw)
  To: help-gnu-emacs

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

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

end of thread, other threads:[~2007-08-19  6:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-18 23:21 calc and comma Hadron
2007-08-18 23:52 ` Jay Belanger
2007-08-19  0:05   ` Hadron
2007-08-19  6:56     ` Andreas Röhler

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.