[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mixing argument types
From: |
Rodolfo Medina |
Subject: |
Re: mixing argument types |
Date: |
Tue, 28 Aug 2018 09:29:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Emanuel Berg <moasen@zoho.com> writes:
> Rodolfo Medina wrote:
>
>> And region-beginning/end...?
>
> You can set the mark with C-SPC
> (`set-mark-command'), and then move point (the
> cursor) around with the usual keys. You should
> now see the effect of this in the buffer.
> The area covered is called the region. Often,
> functions operate on this region because it is
> a natural way to specify what part of the
> buffer should be affected by a command: first
> the user sets the region, then the command is
> invoked, and because there is a region, the
> command affects that, rather than the whole
> buffer (or something else, depending on the
> command).
>
> In Elisp code, you can find out if there is
> a region with (use-region-p). You can even,
> right now reading this, evaluate that (with
> `C-x C-e', `eval-last-sexp') with and without
> a region: it should evaluate to t or nil
> accordingly.
>
> In the Elisp code, if there is a region you use
> `region-beginning' and `region-end' to delimit
> the part of the buffer it covers.
Thanks you... Clear, now.
Rodolfo
- Re: replace-regexp from A to B?, (continued)
Re: replace-regexp from A to B?, Emanuel Berg, 2018/08/26
- Re: replace-regexp from A to B?, Rodolfo Medina, 2018/08/26
- Message not available
- Re: replace-regexp from A to B?, Emanuel Berg, 2018/08/26
- mixing argument types (was: Re: replace-regexp from A to B?), Emanuel Berg, 2018/08/26
- Re: mixing argument types, Stefan Monnier, 2018/08/26
- Message not available
- Re: mixing argument types, Emanuel Berg, 2018/08/26
- Re: mixing argument types, Rodolfo Medina, 2018/08/27
- Message not available
- Re: mixing argument types, Emanuel Berg, 2018/08/27
- Message not available
- Re: mixing argument types, Emanuel Berg, 2018/08/27
- Re: mixing argument types,
Rodolfo Medina <=