[ESS] GNU Emacs, ESS and point
Ali Tofigh
alix.tofigh at gmail.com
Wed Jul 18 23:35:48 CEST 2012
you could try
M-x clone-indirect-buffer-other-window
for me it is bound to C-x 4 c. this clones the buffer preserving the
major modes etc.
/ali
On Wed, Jul 18, 2012 at 3:48 PM, Rodney Sparapani <rsparapa at mcw.edu> wrote:
> On 07/18/2012 10:57 AM, Vitalie Spinu wrote:
>>
>> If I understand correctly what you want is a separate point is different
>> buffers
>> of the same file, right? Then this is what you are after:
>>
>> M-x make-indirect-buffer RET
>>
>>
>> From the (elisp)Indirect Buffers:
>>
>>
>> An "indirect buffer" shares the text of some other buffer, which is
>> called the "base buffer" of the indirect buffer. In some ways it is
>> the analogue, for buffers, of a symbolic link among files. The base
>> buffer may not itself be an indirect buffer.
>>
>> The text of the indirect buffer is always identical to the text of
>> its base buffer; changes made by editing either one are visible
>> immediately in the other. This includes the text properties as well
>> as
>> the characters themselves.
>>
>> In all other respects, the indirect buffer and its base buffer are
>> completely separate. They have different names, independent values of
>> point, independent narrowing, independent markers and overlays (though
>> inserting or deleting text in either buffer relocates the markers and
>> overlays for both), independent major modes, and independent
>> buffer-local variable bindings.
>>
>> Best,
>> Vitalie.
>
>
> That does sound like what I want. I see that the indirect buffer does
> not inherit the mode from either the original buffer nor from the
> extension of the "new" buffer name. Hmmm.... This might be useful.
> I guess you could automate the creation so that the "right" major
> mode is used. I guess this is what's happening with the re-design
> of Sweave. I'll have to experiment. Thanks
>
>
> --
> Rodney Sparapani, PhD Center for Patient Care and Outcomes Research
> Sr. Biostatistician http://www.mcw.edu/pcor
> 4 wheels good, 2 wheels better! Medical College of Wisconsin (MCW)
> WWLD?: What Would Lombardi Do? Milwaukee, WI, USA
>
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list