From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6af8I1/swGBBqwAAgWs5BA (envelope-from ) for ; Wed, 09 Jun 2021 18:29:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IKqKHl/swGDlGwAAbx9fmQ (envelope-from ) for ; Wed, 09 Jun 2021 16:29:19 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9291F27A50 for ; Wed, 9 Jun 2021 18:29:18 +0200 (CEST) Received: from localhost ([::1]:56202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lr14u-0000q0-Rs for larch@yhetil.org; Wed, 09 Jun 2021 12:29:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lr14W-0000pi-OP for emacs-orgmode@gnu.org; Wed, 09 Jun 2021 12:28:52 -0400 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]:39672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lr14U-0002q5-Pl for emacs-orgmode@gnu.org; Wed, 09 Jun 2021 12:28:52 -0400 Received: by mail-ot1-x335.google.com with SMTP id 5-20020a9d01050000b02903c700c45721so23414791otu.6 for ; Wed, 09 Jun 2021 09:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:user-agent:from:to:subject:message-id:date:mime-version; bh=Eq8PwAeqPvvZc0DtIAKZKasy8vyBUiEefbznCLwebog=; b=rU6KmThRMVKV7QhoGpj1EAKG/w6lGyFORYcmmnQOTlvKY5JYMCWXBp9tzocpDT2sDb 0irwTzymusCWkke+CCL1OUA2hkA3RG0LSut0tTEZpOr0U2lgtCyDekd+1ytZlIwfGntq 4CTff5BZ6SuOHQ9OgCQJxdyrscXUk3OH5AkvmTRAppc2Q+Z/lpuDWH3Ul9pq10kRwjdN nwuZ/VWaWsEGYSGIkX8wkf5B3RmaQJ84BBxdVAvJxudmqIFZadVD4Y4VIaxAPP9jxuSQ 0IodPW/qcW48BndPXJuqO6BpCz78/xlgEeNjN2gnQDdXVUDzyU+gT+vzZfOxsSlRGqBo WmAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:user-agent:from:to:subject:message-id :date:mime-version; bh=Eq8PwAeqPvvZc0DtIAKZKasy8vyBUiEefbznCLwebog=; b=aTNwxut/+U2XWsHRp2D44vIr5LgzTRUtFjZV/w+Hdpa/bVdHy+JhcgTkJYQBn3DLgo qCMotAGxynXrWVzONZaM+dUjwYxuwJCTNxjlA8qNrNYml76ctMAfAgansGgeIEvjX19i xdOBllvHZM8uyo726A9H/HS4qMEsSii7CLVWYDGzX/SdVQMzaf551g1EA5hby4/m1/VQ WkidGLsWk+9N6sXgb9bfb/MAGUl6t28HV4Ldwua8WVEWOOL65G4tKhXD65Xr6DgdSvE+ sGv5bmnCnCbESr5PE8+rYOgYkjNFvzhBi8+J7GK6SlLDHSMnJZ+Sv/JggRQZVy/k7+nc SsAg== X-Gm-Message-State: AOAM530+Oym4U6TMM3R0lBZMcTO1rsPiYO3/SwoXVucNvV7GTIPMiA/c 1/WuFIuMwWGpsoQ/SzSJlgIPnOA8/zQ= X-Google-Smtp-Source: ABdhPJzoMzkigQe191NvslBtoIzGFPAUN/b6jbM9gFAMye5GARq+T2Sr+OJBsSueDGyqA1fvEMZcCA== X-Received: by 2002:a05:6830:11ce:: with SMTP id v14mr235282otq.216.1623256129023; Wed, 09 Jun 2021 09:28:49 -0700 (PDT) Received: from gusbrs-laptop ([143.244.34.233]) by smtp.gmail.com with ESMTPSA id 3sm39372oob.1.2021.06.09.09.28.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jun 2021 09:28:48 -0700 (PDT) User-agent: mu4e 1.4.15; emacs 27.2 From: Gustavo Barros To: emacs-orgmode@gnu.org Subject: [BUG] org-return does not honor delete-selection-mode [9.4.6 (release_9.4.6-551-gf70e36 @ /home/gustavo/.emacs.d/lib/org-mode/lisp/)] Message-ID: <87zgvz6lz7.fsf@gmail.com> Date: Wed, 09 Jun 2021 13:28:44 -0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::335; envelope-from=gusbrs.2016@gmail.com; helo=mail-ot1-x335.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623256158; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Eq8PwAeqPvvZc0DtIAKZKasy8vyBUiEefbznCLwebog=; b=OF6uvgbhTv239Nzl94WSANGKGz5lGnATWhhRusGaFiTkU2cLPttaYCF7Srndctdq1jvff5 4tiB1NWph3iQr7oEJ+lFKW6sRC6g1aWZSQSuGCvhPHVIxnY4iF+MHafm6bY66jBthXiG0A N7hxfmXZZvhrFZXylRryNKJvegbGj/YFI2zoXt9FXz5Rn0+dI5Vp3cB3nb6Iimk7Yof7lr JkZ8WqzNtNqaG1pJvvCfrbVqSfr9bttjO4Y9JXOgmDtGQHZ02YUxIsMddPpSAf58bFRWAm Ot0UjT1Jos8KHTmZPrCensW459Il0fi+gDr5P9Nl9vfQBUcbQ0Mg3pYuMDHrWQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623256158; a=rsa-sha256; cv=none; b=rBGWxX6cuJe9gGmksjnEGUrQXf4n4P2kDQjaX9oIO9pQFX03DQY5kmDZ3kfCiuGTvRyA4+ PIQ88J/pTwsB+ovZuF4cjGxU4CRBf0dAtBIUFhkEtNoAbDYF+b4H5xf4q0pQE4qrs3g/AC hJsJrjgJKPAt/9b6v2/93ZWQhqFTJqFxWPXde9fSWrYvS2sWFqp1aMtFFWjUtVUcklqRJ/ 4tSceebt6VEsL/xJaOb92NwMzhwpgCeSm0au4Soki2aK91IDPmkIZDvcUWPMadGz9PJkuN 2051CsEoRe7aajdHkS8WhG1DxW9iqP8aiOlR0eFyb3sGH04twVVpv4WvYrGAZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=rU6KmThR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.83 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=rU6KmThR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 9291F27A50 X-Spam-Score: -0.83 X-Migadu-Scanner: scn1.migadu.com X-TUID: ry47uLuaMBLO Hi All, `org-return' currently does not honor `delete-selection-mode'. An ECM to reproduce it is the following. Start `emacs -Q' and do some setup: #+begin_src emacs-lisp (add-to-list 'load-path "~/.emacs.d/lib/org-mode/lisp") ;; Org repo at commit f70e36252 (load-library "org") (org-version); => "9.4.6" (delete-selection-mode 1) (org-mode) #+end_src Now select a region and type "RET". The newline is indeed inserted, but the selected region is not deleted, as would be expected. To compare, select some region again and type "a". I don't know when this came to be, but the above ECM was tested on the current master. The issue is also present for me in the built-in version of Emacs 27.2, Org 9.4.4. Best regards, Gustavo. Emacs : GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2021-03-25 Package: Org mode version 9.4.6 (release_9.4.6-551-gf70e36 @ /home/gustavo/.emacs.d/lib/org-mode/lisp/) current state: ============== (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-link-shell-confirm-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-mode-hook '((closure (org--rds reftex-docstruct-symbol org-element-greater-elements org-clock-history org-agenda-current-date org-with-time org-defdecode org-def org-read-date-inactive org-ans2 org-ans1 org-columns-current-fmt-compiled org-clock-current-task org-clock-effort org-agenda-skip-function org-agenda-skip-comment-trees org-agenda-archives-mode org-end-time-was-given org-time-was-given org-log-note-extra org-log-note-purpose org-log-post-message org-last-inserted-timestamp org-last-changed-timestamp org-entry-property-inherited-from org-blocked-by-checkboxes org-state org-agenda-headline-snapshot-before-repeat org-agenda-start-on-weekday org-agenda-buffer-tmp-name org-priority-regexp org-mode-abbrev-table org-mode-syntax-table buffer-face-mode-face org-tbl-menu org-org-menu org-struct-menu org-entities org-last-state org-id-track-globally org-clock-start-time texmathp-why remember-data-file org-agenda-tags-todo-honor-ignore-options iswitchb-temp-buflist calc-embedded-open-mode calc-embedded-open-formula calc-embedded-close-formula align-mode-rules-list org-emphasis-alist org-emphasis-regexp-components org-export-registered-backends org-modules org-babel-load-languages org-id-overriding-file-name org-indent-indentation-per-level org-element-paragraph-separate org-inlinetask-min-level t) nil (add-hook 'change-major-mode-hook 'org-show-all 'append 'local) ) (closure (org-src-window-setup *this* org-babel-confirm-evaluate-answer-no org-babel-tangle-uncomment-comments org-src-preserve-indentation org-src-lang-modes org-edit-src-content-indentation org-babel-library-of-babel t) nil (add-hook 'change-major-mode-hook #'org-babel-show-result-all 'append 'local) ) org-babel-result-hide-spec org-babel-hide-all-hashes) org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function '(closure (org-id-locations org-agenda-search-view-always-boolean org-agenda-overriding-header t) (entry) (cdr (assq :title entry))) org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-export-before-parsing-hook '(org-attach-expand-links) org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow org-eww-open :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("doi" :follow org-link-doi-open :export org-link-doi-export) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow (closure ((scheme . "news") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("mailto" :follow (closure ((scheme . "mailto") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("https" :follow (closure ((scheme . "https") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("http" :follow (closure ((scheme . "http") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("ftp" :follow (closure ((scheme . "ftp") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("help" :follow org-link--open-help :store org-link--store-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp)) org-link-elisp-confirm-function 'yes-or-no-p )