[Top][All Lists]

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

Re: [External] : Re: how to force auto-save of buffers not visiting file

From: Emanuel Berg
Subject: Re: [External] : Re: how to force auto-save of buffers not visiting files, right now?
Date: Sat, 19 Mar 2022 03:38:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

hw wrote:

>>>> Emacs thinks that ...
>>> Thanks! I didn't know that emacs can even think, though :)
>> Not to worry. Emacs knows that _we_ can think, and even
>> counts on it!
> In this case, it's kinda true because the adjusted version
> doesn't work because the argument is required, so:
> (defun my-perltidy-replace (arg)
>   "This function replaces the contents of the current buffer with
> the output of perltidy, and makes a backup of the current buffer.
> Before and after modifications to contents of buffers are being
> made, all buffers that need to be auto-saved are being
> auto-saved.
> The major-mode of the buffer containing the backup is set to
> 'cperl-mode'.
> The argument ARG is unused."

In that case, call the argument _ and the docstring comment
can be removed.

underground experts united

reply via email to

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