From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Localized org-mode Date: Wed, 09 May 2018 10:19:17 +0200 Message-ID: <877eodutq2.fsf@nicolasgoaziou.fr> References: <1525784567.2021.47.camel@gmail.com> <87bmdqtf01.fsf@nicolasgoaziou.fr> <1525801068.2021.56.camel@gmail.com> <87bmdqrosp.fsf@nicolasgoaziou.fr> <1525851919.2021.66.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGKkH-0006Ii-QM for emacs-orgmode@gnu.org; Wed, 09 May 2018 04:46:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGKkD-0000h3-PS for emacs-orgmode@gnu.org; Wed, 09 May 2018 04:46:45 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:45947) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fGKkD-0000ew-J6 for emacs-orgmode@gnu.org; Wed, 09 May 2018 04:46:41 -0400 In-Reply-To: <1525851919.2021.66.camel@gmail.com> (ST's message of "Wed, 09 May 2018 10:45:19 +0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: ST Cc: emacs-orgmode@gnu.org Hello, ST writes: > So how do you solve this problem now for English ":PROPERTIES:"? Simple. Org does not replace anything arbitrarily. This is less error-prone. > Anyway if somebody runs into it he could have at least to options: > > 1. write local .emacs.d/.org-de-vocabulary which will override the > default one (or parts of it) with a synonym, like: > PROPERTIES -> ATTRIBUTEN > or > PROPERTIES -> ORG_EIGENSCHAFTEN > and then you can replace blindly before parsing. Again, I'm not particularly fond of having conditional syntax like this. > I don't know lisp :( You may want to look at `org-display-custom-time'. Basically, you search for the regexp "^[ \t]*:\\(PROPERTIES\\):", and use `put-text-property' to change the text between (match-beginning 1) and (match-end 1), e.g., (defun my-properties-translate () (org-with-point-at 1 (while (re-search-forward "^[ \t]*:\\(PROPERTIES\\):" nil t) (put-text-property (match-beginning 1) (match-end 1) 'display "ATTRIBUTEN")))) You need to add this function to, e.g. `org-mode-hook'. Of course this is really basic and can be improved. Regards, -- Nicolas Goaziou 0x80A93738