Package: emacs;
Reported by: Magnus Nilsson <magnus.nilsson <at> alumni.chalmers.se>
Date: Sun, 3 Jul 2022 22:39:01 UTC
Severity: normal
Found in version 27.2
To reply to this bug, email your comments to 56374 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
View this report as an mbox folder, status mbox, maintainer mbox
bug-gnu-emacs <at> gnu.org
:bug#56374
; Package emacs
.
(Sun, 03 Jul 2022 22:39:01 GMT) Full text and rfc822 format available.Magnus Nilsson <magnus.nilsson <at> alumni.chalmers.se>
:bug-gnu-emacs <at> gnu.org
.
(Sun, 03 Jul 2022 22:39:01 GMT) Full text and rfc822 format available.Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Magnus Nilsson <magnus.nilsson <at> alumni.chalmers.se> To: bug-gnu-emacs <at> gnu.org Subject: 27.2; Occur with non-contiguous regions Date: Mon, 4 Jul 2022 00:37:58 +0200
[Message part 1 (text/plain, inline)]
In the help text for 'occur' it indicates that it should be able to work on non-contiguous regions (i.e., a list of cons cells on the form (START . END)). However, when I tried this in both Emacs 27 and 28, this doesn't work when I mark a rectangular region. It only catches occurrances found within the bounds of the first cons cell. My intention was to override (region-bounds) within a let statement to return a non-contiguous region of interest (in the form of a list of cons cells) and let 'occur' work on that non-contiguous region. Unfortunately, this didn't work out as I planned. It would be neat if this could be fixed for upcoming versions. In GNU Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2021-03-27 built on builder10-14.porkrind.org Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.4 Recent messages: ((215 . 224) (234 . 243) (253 . 262) (271 . 280) (291 . 300) (311 . 320)) Rectangle-Mark mode disabled in current buffer Searched 1 buffer; 7 matches for "e" nil GNU Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2021-03-27 Quit [2 times] user-error: No window up from selected window #[2050 :\203 <at> ATB\262 \306=?\205 \203% \202& \307>\2031\211\2026\310"\311 \312 & \211\313\232\203\\203\:\203Y@\202Z\262,\207 [minibuffer-completion-table minibuffer-completion-predicate minibuffer-completion-confirm minibuffer--require-match minibuffer-local-must-match-map minibuffer-local-completion-map t (nil lambda) make-composed-keymap read-from-minibuffer ...] 18 2459897]: Command attempted to use minibuffer while in minibuffer Quit [2 times] user-error: No window up from selected window Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER GMP Important settings: value of $LANG: en_SE.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: display-line-numbers-mode: t desktop-save-mode: t projectile-mode: t which-key-mode: t dap-tooltip-mode: t dap-ui-many-windows-mode: t dap-ui-mode: t treemacs-filewatch-mode: t treemacs-follow-mode: t treemacs-git-mode: t treemacs-fringe-indicator-mode: t dap-auto-configure-mode: t dap-mode: t async-bytecomp-package-mode: t pyvenv-tracking-mode: t pyvenv-mode: t TeX-PDF-mode: t ws-butler-mode: t beacon-mode: t global-flycheck-mode: t flycheck-mode: t midnight-mode: t global-git-commit-mode: t magit-auto-revert-mode: t global-auto-revert-mode: t shell-dirtrack-mode: t savehist-mode: t winner-mode: t marginalia-mode: t show-paren-mode: t doom-modeline-mode: t minions-mode: t vertico-multiform-mode: t vertico-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: ~/.emacs.d/elisp-at-3dv/misc hides /Applications/Emacs.app/Contents/Resources/lisp/misc /Users/magnus_nilsson/.emacs.d/elpa/python-0.28/python hides /Applications/Emacs.app/Contents/Resources/lisp/progmodes/python /Users/magnus_nilsson/.emacs.d/elpa/org-contrib-0.3/ob-stan hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-stan /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-exp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-exp /Users/magnus_nilsson/.emacs.d/elpa/org-contrib-0.3/ob-J hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-J /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-emacs-lisp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-emacs-lisp /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-css hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-css /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-lob hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lob /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ol-irc hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-irc /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-forth hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-forth /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-macs hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-macs /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-version hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-version /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-scheme hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-scheme /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ox hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox /Users/magnus_nilsson/.emacs.d/elpa/org-contrib-0.3/ob-abc hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-abc /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-C hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-C /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-capture hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-capture /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-ref hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ref /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-clojure hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-clojure /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-mouse hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-mouse /Users/magnus_nilsson/.emacs.d/elpa/org-contrib-0.3/ob-ledger hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ledger /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-ctags hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-ctags /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-entities hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-entities /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-archive hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-archive /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-screen hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-screen /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ol-bibtex hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-bibtex /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-haskell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-haskell /Users/magnus_nilsson/.emacs.d/elpa/org-contrib-0.3/ob-asymptote hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-asymptote /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-table hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-table /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ol-eww hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-eww /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ox-org hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-org /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-num hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-num /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-plot hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-plot /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ol-rmail hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-rmail /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-awk hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-awk /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-groovy hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-groovy /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-octave hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-octave /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-faces hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-faces /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-colview hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-colview /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-R hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-R /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-refile hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-refile /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-timer hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-timer /Users/magnus_nilsson/.emacs.d/elpa/org-contrib-0.3/ob-ebnf hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ebnf /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-mobile hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-mobile /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-fortran hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-fortran /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-shell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-shell /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-perl hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-perl /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-sqlite hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sqlite /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-sed hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sed /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-list hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-list /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-ruby hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ruby /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-eval hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-eval /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-habit hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-habit /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-clock hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-clock /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-goto hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-goto /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ox-html hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-html /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-src hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-src /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-lisp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lisp /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ol-eshell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-eshell /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-ditaa hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ditaa /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-pcomplete hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-pcomplete /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-lint hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-lint /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ox-latex hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-latex /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-sass hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sass /Users/magnus_nilsson/.emacs.d/elpa/org-contrib-0.3/ob-io hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-io /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-tangle hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-tangle /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-calc hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-calc /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-java hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-java /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ox-icalendar hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-icalendar /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ol-mhe hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-mhe /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-attach-git hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-attach-git /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ox-md hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-md /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ox-beamer hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-beamer /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-element hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-element /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-protocol hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-protocol /Users/magnus_nilsson/.emacs.d/elpa/org-contrib-0.3/ob-mscgen hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-mscgen /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-gnuplot hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-gnuplot /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-tempo hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-tempo /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-latex hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-latex /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ol-w3m hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-w3m /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-id hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-id /Users/magnus_nilsson/.emacs.d/elpa/org-contrib-0.3/ob-vala hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-vala /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ox-man hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-man /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-feed hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-feed /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-lua hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lua /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-table hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-table /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-ocaml hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ocaml /Users/magnus_nilsson/.emacs.d/elpa/org-contrib-0.3/ob-coq hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-coq /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ol-gnus hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-gnus /Users/magnus_nilsson/.emacs.d/elpa/org-contrib-0.3/ob-picolisp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-picolisp /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-indent hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-indent /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-lilypond hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lilypond /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-matlab hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-matlab /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-datetree hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-datetree /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ol-docview hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-docview /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-python hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-python /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-makefile hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-makefile /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-duration hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-duration /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-agenda hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-agenda /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-dot hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-dot /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-js hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-js /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ox-publish hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-publish /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-inlinetask hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-inlinetask /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-org hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-org /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-keys hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-keys /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-core hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-core /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-compat hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-compat /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ol hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ox-odt hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-odt /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ol-info hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-info /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-plantuml hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-plantuml /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-eshell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-eshell /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ox-ascii hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-ascii /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-loaddefs hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-loaddefs /Users/magnus_nilsson/.emacs.d/elpa/org-contrib-0.3/ob-hledger hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-hledger /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-maxima hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-maxima /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org hides /Applications/Emacs.app/Contents/Resources/lisp/org/org /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ol-bbdb hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-bbdb /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-macro hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-macro /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-sql hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sql /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-attach hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-attach /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-processing hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-processing /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ox-texinfo hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-texinfo /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-crypt hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-crypt /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/org-footnote hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-footnote /Users/magnus_nilsson/.emacs.d/elpa/org-9.5.2/ob-comint hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-comint /Users/magnus_nilsson/.emacs.d/elpa/org-contrib-0.3/ob-shen hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-shen Features: (shadow sort mail-extr emacsbug sendmail misearch multi-isearch reftex-dcr reftex-auc reftex reftex-loaddefs reftex-vars preview tex-buf font-latex tex-mode blamer a eieio-opt speedbar sb-image ezimage dframe rect vertico-directory ido-completing-read+ memoize minibuf-eldef org-eldoc flyspell ispell disp-table ol-eww eww mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir gnus-sum shr svg gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader ol-docview doc-view ol-bbdb ol-w3m ol-doi org-link-doi jka-compr lsp-diagnostics lsp-modeline lsp-ui lsp-ui-flycheck lsp-ui-doc goto-addr lsp-ui-imenu lsp-ui-peek lsp-ui-sideline lsp-ui-util lsp-headerline lsp-icons company-box company-box-doc frame-local company-box-icons company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-cmake company-semantic company-template company-bbdb tramp-cache view lsp-zig lsp-steep lsp-svelte lsp-sqls lsp-yaml lsp-xml lsp-vimscript lsp-vhdl lsp-volar lsp-vetur lsp-html lsp-verilog lsp-vala lsp-v lsp-typeprof lsp-ttcn3 lsp-toml lsp-terraform lsp-tex lsp-sorbet lsp-solargraph lsp-rust lsp-rf lsp-remark lsp-r lsp-purescript lsp-pylsp lsp-pyls lsp-pwsh lsp-php lsp-perlnavigator lsp-perl lsp-ocaml lsp-magik lsp-nix lsp-nim lsp-nginx lsp-markdown lsp-lua lsp-kotlin lsp-json lsp-javascript lsp-idris lsp-haxe lsp-groovy lsp-hack lsp-graphql lsp-go lsp-completion lsp-gdscript lsp-fsharp lsp-fortran lsp-eslint lsp-erlang lsp-emmet lsp-elixir lsp-elm lsp-dockerfile lsp-dhall lsp-d lsp-css lsp-csharp gnutls lsp-crystal lsp-cmake lsp-clojure lsp-semantic-tokens lsp-clangd dom lsp-beancount lsp-bash lsp-ansible lsp-angular lsp-ada lsp-actionscript display-line-numbers desktop frameset helm-projectile projectile lisp-mnt rg vc vc-dispatcher rg-info-hack rg-menu rg-ibuffer rg-result wgrep-rg wgrep rg-history rg-header ibuf-ext ibuffer ibuffer-loaddefs flycheck-clang-analyzer clang-format+ clang-format xml which-key dap-cpptools dap-gdb-lldb dap-utils dap-mouse dap-ui lsp-treemacs lsp-treemacs-themes treemacs treemacs-header-line treemacs-compatibility treemacs-mode treemacs-bookmarks treemacs-interface treemacs-extensions treemacs-mouse-interface treemacs-tags treemacs-persistence treemacs-filewatch-mode treemacs-follow-mode treemacs-rendering treemacs-async treemacs-workspaces treemacs-dom treemacs-visuals treemacs-fringe-indicator treemacs-scope pulse treemacs-faces treemacs-icons treemacs-themes treemacs-core-utils pfuture treemacs-logging treemacs-customization treemacs-macros bui bui-list bui-info bui-entry bui-core bui-history bui-button bui-utils lsp-lens dap-mode dap-launch posframe dap-overlays lsp-ido helm-mode helm-misc helm-files image-mode exif helm-buffers helm-occur helm-tags helm-locate helm-grep helm-regexp helm-utils helm-help helm-types helm helm-core async-bytecomp helm-global-bindings helm-easymenu helm-source helm-multi-match helm-lib async focus yaml-mode protobuf-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs python-black reformatter highlight-indentation company-capf company help-fns radix-tree elpy elpy-rpc pyvenv eshell-git-prompt eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util elpy-shell elpy-profile elpy-django elpy-refactor hideshow etags fileloop cus-edit cus-start cus-load latex latex-flymake flymake-proc flymake tex-ispell tex-style tex texmathp pdfgrep grep phi-search phi-search-core ws-butler keycast beacon flycheck midnight git-timemachine vc-git git-link orgit magit-bookmark magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode diff diff-mode git-commit log-edit pcvs-util add-log magit-core magit-autorevert autorevert magit-margin magit-transient magit-process with-editor magit-mode transient magit-git magit-base magit-section crm ox-slack ox-pandoc ox-gfm ox-md org-bullets ob-shell ob-latex ob-python python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell ls-lisp ob-matlab ob-octave org-tempo tempo org-ref org-ref-core org-ref-glossary org-ref-bibtex avy doi-utils url-http url url-proxy url-privacy url-expand url-methods url-history mailcap url-auth url-cookie url-domsuf url-gw message dired dired-loaddefs rfc822 mml mml-sec epa derived gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader org-ref-utils org-ref-export citeproc citeproc-itemgetters citeproc-biblatex parse-time iso8601 citeproc-bibtex ol-bibtex citeproc-cite citeproc-subbibs citeproc-sort citeproc-name citeproc-formatters citeproc-number rst citeproc-proc citeproc-disamb citeproc-itemdata citeproc-generic-elements citeproc-macro citeproc-choose citeproc-date citeproc-context citeproc-prange citeproc-style citeproc-locale citeproc-term citeproc-rt citeproc-lib citeproc-s queue ox-org ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox org-ref-misc-links org-ref-label-link org-ref-ref-links org-ref-citation-links org-ref-bibliography-links hydra bibtex-completion org-capture org-refile biblio biblio-download biblio-dissemin biblio-ieee biblio-hal biblio-dblp biblio-crossref biblio-arxiv timezone biblio-doi biblio-core let-alist url-queue ido parsebib org-element avl-tree generator diary-lib diary-loaddefs exec-path-from-shell savehist winner spray face-remap figlet scroll-on-jump marginalia googledoc warnings cl gud-lldb gdb-mi bindat gud mic-paren undo-fu hl-line paren autoinsert server backup-each-save doom-modeline doom-modeline-segments doom-modeline-env doom-modeline-core shrink-path all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons minions doom-themes doom-themes-base zenburn-theme consult-lsp lsp lsp-mode lsp-protocol yasnippet-snippets yasnippet xref project url-util spinner network-stream puny nsm rmc markdown-mode color thingatpt lv inline imenu ht filenotify f s ewoc epg epg-config dash compile consult-vertico consult recentf tree-widget wid-edit bookmark text-property-search pp vertico-buffer vertico-multiform vertico-indexed vertico-grid vertico-flat vertico hotfuzz orderless completion move-text windmove code-block use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key use-package-core cl-extra help-mode org ob ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities time-date noutline outline org-version ob-emacs-lisp org-table oc-basic bibtex org-loaddefs find-func cal-menu calendar cal-loaddefs ob-tangle ol org-src org-keys oc ob-comint comint ansi-color ring ob-core org-compat advice ob-eval org-macs format-spec org-install finder-inf tex-site edmacro kmacro pcase easy-mmode rx info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 1005984 498640) (symbols 48 76866 121) (strings 32 389630 75060) (string-bytes 1 10323073) (vectors 16 259418) (vector-slots 8 3257627 231030) (floats 8 2075 4197) (intervals 56 8670 5654) (buffers 1000 96))
[Message part 2 (text/html, inline)]
bug-gnu-emacs <at> gnu.org
:bug#56374
; Package emacs
.
(Mon, 04 Jul 2022 06:36:02 GMT) Full text and rfc822 format available.Message #8 received at 56374 <at> debbugs.gnu.org (full text, mbox):
From: Juri Linkov <juri <at> linkov.net> To: Magnus Nilsson <magnus.nilsson <at> alumni.chalmers.se> Cc: 56374 <at> debbugs.gnu.org Subject: Re: bug#56374: 27.2; Occur with non-contiguous regions Date: Mon, 04 Jul 2022 09:31:17 +0300
> In the help text for 'occur' it indicates that it should be able to work > on non-contiguous regions (i.e., a list of cons cells on the form (START > . END)). However, when I tried this in both Emacs 27 and 28, this > doesn't work when I mark a rectangular region. It only catches > occurrances found within the bounds of the first cons cell. Like bug#14013 now has a patch that implements support for any regexp including "^.*$" on a non-contiguous region, occur should be improved to use the same search function. (Also all artificial restrictions on handling only the first cons cell in occur should be lifted.) > My intention was to override (region-bounds) within a let statement to > return a non-contiguous region of interest (in the form of a list of > cons cells) and let 'occur' work on that non-contiguous > region. Unfortunately, this didn't work out as I planned. It would be > neat if this could be fixed for upcoming versions. Do you expect that 'occur' should accept a non-contiguous region in its argument REGION? This is not how perform-replace works. The query-replace commands send the boolean value of '(region-noncontiguous-p)' to perform-replace argument 'region-noncontiguous-p', then perform-replace extracts it with '(funcall region-extract-function 'bounds)'. Do you agree that 'occur' could do the same?
bug-gnu-emacs <at> gnu.org
:bug#56374
; Package emacs
.
(Mon, 04 Jul 2022 07:13:01 GMT) Full text and rfc822 format available.Message #11 received at 56374 <at> debbugs.gnu.org (full text, mbox):
From: Magnus Nilsson <magnus.nilsson <at> alumni.chalmers.se> To: Juri Linkov <juri <at> linkov.net> Cc: 56374 <at> debbugs.gnu.org Subject: Re: bug#56374: 27.2; Occur with non-contiguous regions Date: Mon, 4 Jul 2022 09:12:03 +0200
[Message part 1 (text/plain, inline)]
Thanks for the swift reply Juri. If "artificial resctrictions (...) should be lifted" means that rectangular regions could start working with occur, that sounds great. Regarding your question, I'm not aware of the possible dependencies between perform-replace and occur. My intended use case is to have a separate function to extract a non-contiguous region of my liking (i.e., in the form of a list of cons cells of buffer positions) and have occur operate on that list by passing it in as the "region" argument. That way, occur wouldn't return any matches in the parts of the buffer I'm not interested in. I interpreted the documentation of occur to support passing in region like that, in particular from this formulation: "REGION must be a list of (START . END) positions as returned by `region-bounds'." In elisp-code, this is how I changed occur to also support non-contiguous regions according to my interpretation of the documentation: ------------ begin elisp-code ---------------------- (defun my-occur (regexp &optional nlines region) "My fix to occur, which does not handle non-contiguous regions now. I filed a bug report for this." (interactive (nconc (occur-read-primary-args) (and (use-region-p) (list (region-bounds))))) (let ((bufs (list)) (once t)) (while (or region once) (let* ((start (and (caar region) (max (caar region) (point-min)))) (end (and (cdar region) (min (cdar region) (point-max)))) (in-region (or start end)) (buf (if (not in-region) (current-buffer) (let ((ol (make-overlay (or start (point-min)) (or end (point-max))))) (overlay-put ol 'occur--orig-point (point)) ol)))) (push buf bufs)) (setq once nil) (setq region (cdr region))) (occur-1 regexp nlines bufs))) (defalias 'occur 'my-occur) -------------- end elisp-code ----------------------------------------- Anyway, I'll leave it up to you to interpret the documentation and if it or the code requires a fix. Thanks again, Magnus Den mån 4 juli 2022 kl 08:35 skrev Juri Linkov <juri <at> linkov.net>: > > In the help text for 'occur' it indicates that it should be able to work > > on non-contiguous regions (i.e., a list of cons cells on the form (START > > . END)). However, when I tried this in both Emacs 27 and 28, this > > doesn't work when I mark a rectangular region. It only catches > > occurrances found within the bounds of the first cons cell. > > Like bug#14013 now has a patch that implements support for any regexp > including "^.*$" on a non-contiguous region, occur should be improved > to use the same search function. (Also all artificial restrictions > on handling only the first cons cell in occur should be lifted.) > > > My intention was to override (region-bounds) within a let statement to > > return a non-contiguous region of interest (in the form of a list of > > cons cells) and let 'occur' work on that non-contiguous > > region. Unfortunately, this didn't work out as I planned. It would be > > neat if this could be fixed for upcoming versions. > > Do you expect that 'occur' should accept a non-contiguous region > in its argument REGION? This is not how perform-replace works. > The query-replace commands send the boolean value of > '(region-noncontiguous-p)' to perform-replace argument > 'region-noncontiguous-p', then perform-replace extracts it with > '(funcall region-extract-function 'bounds)'. > > Do you agree that 'occur' could do the same? >
[Message part 2 (text/html, inline)]
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.