unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Andreas Röhler" <andreas.roehler@online.de>
To: help-gnu-emacs@gnu.org
Subject: Re: calc and comma
Date: Sun, 19 Aug 2007 08:56:11 +0200	[thread overview]
Message-ID: <200708190856.11855.andreas.roehler@online.de> (raw)
In-Reply-To: <j6y7g8v16m.fsf@homelinux.net>

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	other threads:[~2007-08-19  6:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200708190856.11855.andreas.roehler@online.de \
    --to=andreas.roehler@online.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.
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).