help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dired: how to mark with other character but *


From: Emanuel Berg
Subject: Re: Dired: how to mark with other character but *
Date: Sun, 31 Jan 2021 07:43:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Jean Louis wrote:

> I have solved it now by making new function based on
> (dired-flag-file-deletion ARG &optional INTERACTIVE):
>
> (defun rcd-dired-mark-view-file (arg &optional interactive)
>   "In Dired, mark the current line's file for viewing.
> If the region is active, mark all files in the region.
> Otherwise, with a prefix arg, mark files on the next ARG lines.
>
> If on a subdir headerline, mark all its files except `.' and `..'.
> If the region is active in Transient Mark mode, mark all files
> in the active region."
>   (interactive (list current-prefix-arg t))
>   (let ((dired-marker-char 86))
>     (dired-mark arg interactive)))

Yeah, but... isn't this built-in somewhere already?

86 = ?V BTW, maybe more clear to use that in this case...

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]