From mboxrd@z Thu Jan 1 00:00:00 1970 From: Allen Li Subject: Bug: org-agenda-set-tags with certain options sets tags on wrong entry [9.2.3 (9.2.3-13-g727c3f-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20190506/)] Date: Tue, 14 May 2019 07:02:04 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:51914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQRSF-0006qk-VO for emacs-orgmode@gnu.org; Tue, 14 May 2019 03:02:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQRSE-0007aW-1r for emacs-orgmode@gnu.org; Tue, 14 May 2019 03:02:27 -0400 Received: from mail-it1-x133.google.com ([2607:f8b0:4864:20::133]:38491) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hQRSB-0007QE-45 for emacs-orgmode@gnu.org; Tue, 14 May 2019 03:02:23 -0400 Received: by mail-it1-x133.google.com with SMTP id i63so3042517ita.3 for ; Tue, 14 May 2019 00:02:16 -0700 (PDT) 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 Repro: 1. emacs -Q 2. Eval: (setq org-tag-alist '(("agenda" . ?a))) (add-to-list 'load-path "~/.emacs.d/elpa/org-plus-contrib-20190506") (define-key global-map (kbd "C-c a") #'org-agenda) (setq switch-to-buffer-preserve-window-point t) 3. Make a tmp.org containing: * TODO foo * TODO bar 4. Add tmp.org to agenda files. 5. Make sure point is on the foo entry. 6. C-c a t 7. Move point to the bar entry. 8. : a RET // Set agenda tag Expected: agenda tag set on bar entry Actual: agenda tag set on foo entry More info: switch-to-buffer-preserve-window-point interacts poorly with the (delete-other-windows) call in org-fast-tag-selection. Emacs : GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.8) of 2019-04-12 Package: Org mode version 9.2.3 (9.2.3-13-g727c3f-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20190506/)