From mboxrd@z Thu Jan 1 00:00:00 1970 From: Allen Li Subject: Re: Bug: org-agenda-overriding-columns-format destroyed on revert [9.2.1 (9.2.1-2-gc6d37c-elpaplus)] Date: Wed, 13 Feb 2019 09:25:20 +0000 Message-ID: References: <808syk5cis.fsf@felesatra.moe> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:60434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtqna-00059S-Pu for emacs-orgmode@gnu.org; Wed, 13 Feb 2019 04:25:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtqnR-0003Ic-Rz for emacs-orgmode@gnu.org; Wed, 13 Feb 2019 04:25:39 -0500 Received: from mail-it1-x133.google.com ([2607:f8b0:4864:20::133]:34265) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gtqnO-0003EC-3O for emacs-orgmode@gnu.org; Wed, 13 Feb 2019 04:25:36 -0500 Received: by mail-it1-x133.google.com with SMTP id j17so1153812ita.1 for ; Wed, 13 Feb 2019 01:25:32 -0800 (PST) In-Reply-To: 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: Org Mode List Apologies for the spam. On Wed, Feb 13, 2019 at 9:11 AM Allen Li wrote: > I don't see an easy good fix due to how Emacs's dynamic variable > binding works with respect to buffer local variables. > > One way to fix is redefine: > > (defun org-let (list &rest body) > (eval `(with-temp-buffer ,(cons 'let (cons list body))))) This does not work for obvious reasons, please don't use it. I'll shut up now since I clearly need sleep. > > That way, the let doesn't use the buffer local value for ocf, so the > kill-all-local-variables doesn't wipe it. > > I can confirm that this fixes this bug. However, I have no idea what > effect this may have on all of Org mode.