Questions tagged [filtering]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

How can I convert nnmail-split-methods mail filtering format to Sieve format?

Any pointers to convert nnmail-split-methods to Sieve? Are there any functions in gnus, since it seems to also handle Sieve format? I have like a few hundred lines exactly like this: ("ffmpeg-...
Jason Hunter's user avatar
4 votes
2 answers
377 views

Filter a list of strings to create a separate list of those that match a given prefix

If I have a list, (“apple” “pear” “grape” “apricot”) how do I create a new list with elements starting with the letter “a”? The new list will be: (“apple” “apricot”).
zeynel's user avatar
  • 301
1 vote
2 answers
52 views

Filter out command completions with specific prefixes

I am using command completions, and would like to 'filter' out certain built-in packages. For example, typing "text"; In these completions, I would like to filter out/hide the entries that ...
Disorderless's user avatar
0 votes
2 answers
23 views

How do you filter buffer list in a script? [duplicate]

Let's say there are three buffers: "buffer1.py" "buffer2.rb" "buffer3.ipynb" How do you filter/glob that list to select a specific buffer aka (switch-to-buffer "*....
Daniel Krajnik's user avatar
2 votes
1 answer
213 views

Filter org-file using tags

I've this org-file: * Headline a :tag1: Text for my Headline a * Headline b :tag2: ...
Paolo's user avatar
  • 21
0 votes
1 answer
71 views

How to show timestamped entries without TODO status

I understand from the manual that the command for doing a search of agenda entries which have a timestamp before today is as follows: TIMESTAMP<"<today>" If I additionally want to ...
Emmanuel Goldstein's user avatar
1 vote
2 answers
88 views

Using sed to filter/modify make output

I have to live with a build system that moves pieces of source around before running make. I have a function that pipes output of make through a sed to remap file references back to the source tree. (...
zzz777's user avatar
  • 111
4 votes
2 answers
853 views

mapcar but return non-nil element only

Is there a function that applies a transformation to a sequence and returns only the non-nil values? Right now I am using the following (as an example): (seq-filter #'identity (mapcar (lambda (x) ...
Tohiko's user avatar
  • 1,609
1 vote
1 answer
63 views

Saving filter list for Bookmark+ package

I've recently started using the BookmarkPlus package and I've been loving it. However there is one thing that I can't seem to figure out. I want, from my big list of bookmarks, to create a set of ...
burek's user avatar
  • 35
1 vote
1 answer
218 views

regexp-filter just searches headlines (org agenda view)

I have a problem with the filtering function org-agenda-filter-by-regexp: It just searches the headlines of the entries not the whole entry text. Example: * title :work: text Searching for the tag '...
rl1's user avatar
  • 346
0 votes
2 answers
577 views

How to filter the package list by package name part or regex

Via M-x list-packages I can view a list of installable and installed packages. Great! But how can I filter this list by a portion of the package name? PS: I know about package-menu-filter, but for me ...
halloleo's user avatar
  • 1,321
2 votes
3 answers
85 views

emacs grep eliminate suspects

Typically, at the beginning of a coding/maintenance task, I usually start with a carefully worded grep, such as M-x grep git --no-pager grep -n -e 'collect' -- ':!*spec*' ':!*.yml'<enter> and ...
american-ninja-warrior's user avatar
1 vote
2 answers
622 views

Filter list by regexps

How can I get all elements of a list which don't match multiple patterns? The patterns are given as a list. For instance, I want all files without '("no" "nix") in them. (setq se-...
Lorem Ipsum's user avatar
  • 4,407
1 vote
1 answer
221 views

Filter the content read from file

(This follows the answer to the question: Completion of sentences stored in a file.) Suppose I have a file, the content of which being organized thanks to org-mode: * Dreams ≠ reality Please, don'...
Denis Bitouzé's user avatar
0 votes
1 answer
27 views

shortname for complex filter in org agenda

I want to give a shortname to a regular filter I use for agenda. To prepare some meeting, i have a list of task / note with tag. I filter tag in org-agenda and before the meeting, i use org-agenda ...
olopost's user avatar
  • 43
2 votes
1 answer
261 views

Hide org-table rows outside certain date ranges?

Excel tables lets us show just the rows that have "July 2018" in a specific column, and hide the rest. Or to show "21st August 2017-30th August 2017, and also July 2018, and also all of 2019", and ...
Jonta's user avatar
  • 147
1 vote
3 answers
1k views

How to filter a dynamic block column view by tags with a :match selector?

I'm trying to filter an org mode heading by tag in a dynamic block, but the match syntax is not quite working out. Example: #+COLUMNS: %25ITEM %TAGS * Something ...
Thales MG's user avatar
  • 111
2 votes
2 answers
350 views

How keep only duplicate lines?

Emacs 26.1. Windows 10 In buffer I has text like this: 3333333 1111111 $PAC_LTC 1337_BTC 1337_LTC 404_BTC 42_BTC 222222 42_LTC 808_ETH 8BIT_BTC ...
a_subscriber's user avatar
  • 3,926
2 votes
0 answers
96 views

org-mode: Duplicate tag groups when filtering agenda

When filtering org-agenda by tags using org-agenda-filter-by-tag, tag groups specified in org-tag-alist show up multiple times. org-agenda-filter-by-tag uses the variable org-tag-alist-for-agenda, ...
halvorlu's user avatar
2 votes
1 answer
3k views

Error in process filter

I am trying to play with the make-process function and get information from it. I am getting some errors in my process filter that I am having trouble understanding. When I run my ceedling-version ...
Jesse's user avatar
  • 267
1 vote
1 answer
177 views

isearch-forward, call-interactively, and isearch-filter-predicate

Here are two use cases where I call isearch-forward with some filter predicate. (let ((isearch-filter-predicate (lambda (a b) nil))) (funcall 'isearch-forward)) (let ((isearch-filter-predicate (...
Michaël's user avatar
  • 314
2 votes
1 answer
88 views

ibuffer hide beginning of lines

When I press C-x C-b I get ibuffer (installed as part of prelude I think) I like to press backtick and get the Filename/Process displayed. Another SE answer helped me with that. (ibuffer hide columns)...
american-ninja-warrior's user avatar
1 vote
1 answer
226 views

Spacemacs+magit+helm checkout hide branches

Due to my workflow I have a lot of branches that I don't want to see in the magit helm checkout window. Is there a way to hide some branches here, preferably with a regexp?
Milan's user avatar
  • 103
0 votes
2 answers
109 views

How do I filter an alist to just the properties I care about?

To effectively use a service's API, I'm leveraging json-read to turn the JSON response into an understandable data structure: (let ((json-object-type 'alist) (json-array-type 'list) (...
Sean Allred's user avatar
  • 6,871
1 vote
0 answers
331 views

Org-Agenda day agenda filtered by tags OR'ed

A custom Agenda view can be filtered by tags AND'ed, e.g. show entries having both play AND read tags, like this: (setq org-agenda-custom-commands '(("p" "play AND read" agenda "" ((org-agenda-...
Alexander Shcheblikin's user avatar
3 votes
2 answers
84 views

Builtin Filter Algorithm

In 25.1 there is (still) no builtin algorithm named filter. Why? What should I use instead? I think I've read somewhere that a standardized filter algorithm should be added to Emacs.
Nordlöw's user avatar
  • 497
1 vote
2 answers
495 views

Standard emacs lisp function for "collect-if"

Is there a standard emacs-lisp function replacement for (defun collect-if (PREDICATE LIST) (loop for el in LIST if (funcall PREDICATE el) collect el)) Example toy application: Extract the odd ...
Tobias's user avatar
  • 32.8k