From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anton Latukha Subject: Re: [PATCH] org: org-get-priority: reduce `not`, deduplicate magic `(* 1000 ..)` operation Date: Thu, 10 Oct 2019 17:24:32 +0300 Message-ID: <1299541570717472@myt4-5a6ff78822c8.qloud-c.yandex.net> References: <10577751569717294@sas1-a0d9133b67ec.qloud-c.yandex.net> <87imozeggw.fsf@nicolasgoaziou.fr> <5203711570570088@iva5-58d151f416d2.qloud-c.yandex.net> <2458361570573406@sas8-93eeb7dac565.qloud-c.yandex.net> <875zkwepih.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: base64 Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53046) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIZZT-0005w4-IE for emacs-orgmode@gnu.org; Thu, 10 Oct 2019 10:37:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iIZZS-0002Zo-4c for emacs-orgmode@gnu.org; Thu, 10 Oct 2019 10:37:39 -0400 Received: from forward500j.mail.yandex.net ([5.45.198.250]:59946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iIZZR-0002Z0-ON for emacs-orgmode@gnu.org; Thu, 10 Oct 2019 10:37:38 -0400 In-Reply-To: <875zkwepih.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode PGRpdj5QbGVhc2UuPC9kaXY+PGRpdj48YnIgLz5JIHRyaWVkIHRvIGV4cGxhaW4gbXlzZWxmLCBi dXQgSSBzZWUgdGhlIG1vcmUgSSBleHBsYWluIG15c2VsZiwgYW5kIHdyaXRlIC0gdGhlIG1vcmUg cGVvcGxlIHdvdW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