From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: visual-region-mode? Date: Wed, 12 Sep 2018 23:27:45 +0300 Organization: LINKOV.NET Message-ID: <87ftyefp3m.fsf@mail.linkov.net> References: <83k1nxvm5j.fsf@gnu.org> <877ejxsm18.fsf@toy.adminart.net> <874lf0oul4.fsf@toy.adminart.net> <877ejuabdt.fsf_-_@toy.adminart.net> <878t473dhg.fsf@toy.adminart.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1536784213 19287 195.159.176.226 (12 Sep 2018 20:30:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2018 20:30:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: lokedhs@gmail.com, cpitclaudel@gmail.com, "Charles A. Roelli" , rms@gnu.org, emacs-devel@gnu.org To: hw Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 12 22:30:08 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g0Bm1-0004q3-CS for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2018 22:30:05 +0200 Original-Received: from localhost ([::1]:38334 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0Bo8-0000ok-0E for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2018 16:32:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0Bnx-0000oU-1T for emacs-devel@gnu.org; Wed, 12 Sep 2018 16:32:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0Bnq-0007wp-2m for emacs-devel@gnu.org; Wed, 12 Sep 2018 16:32:02 -0400 Original-Received: from pop.dreamhost.com ([64.90.62.162]:57904 helo=pdx1-sub0-mail-a21.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g0Bnn-0007wE-1v; Wed, 12 Sep 2018 16:31:55 -0400 Original-Received: from pdx1-sub0-mail-a21.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a21.g.dreamhost.com (Postfix) with ESMTP id A14F780023; Wed, 12 Sep 2018 13:31:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=DdT7pFEGPkGUFrDDE8HcFE9aEds=; b= pjWKtyuJ4JMWnGXPrdoODMbB5d8yPrJseTzhZCd7S8D/RUiZ6RvC/2dGWDKzURYj KZ+Hjg4wK4qzBdEylye5vjmBEQZwNGJjUDtg/XjQKQ9c0MZOwTX55bY8Z6B6JDXe nx424xR9M1/nBmZoPfrOE3yxusvKdjxkHeYlp1KzzAQ= Original-Received: from localhost.linkov.net (m91-129-104-147.cust.tele2.ee [91.129.104.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a21.g.dreamhost.com (Postfix) with ESMTPSA id 73D7B7FFD0; Wed, 12 Sep 2018 13:31:51 -0700 (PDT) In-Reply-To: <878t473dhg.fsf@toy.adminart.net> (hw@adminart.net's message of "Tue, 11 Sep 2018 23:56:11 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.90.62.162 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229724 Archived-At: > I don't think there can currently be multiple regions at the same time. Multiple regions are already supported - rectangle region is one implementation of non-contiguous regions. So you can define your own region shape by extending region-extract-function and redisplay-highlight-region-function to e.g. put region boundaries at positions of marks from mark-ring where C-SPC will add more parts to the region. > As for doing other things, like replacing text in multiple parts of a > buffer, is that something that could be usefully done with indirect > buffers? With multiple regions, I'd highlight some parts of the buffer, > do the replacement limited to these parts and would be done with it. > I'd be able to see all of the buffer while doing this. query-replace already supports multiple regions.