From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: isearch region or thing at point. Date: Sat, 27 Apr 2019 03:15:21 +0100 Message-ID: <87a7gcp51i.fsf@tcd.ie> References: <20190427001453.isjx247kc3lu5fe4@Ergus> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="155173"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 27 04:29:22 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hKD5d-000eHg-SS for ged-emacs-devel@m.gmane.org; Sat, 27 Apr 2019 04:29:21 +0200 Original-Received: from localhost ([127.0.0.1]:54523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKD5c-0002nn-T2 for ged-emacs-devel@m.gmane.org; Fri, 26 Apr 2019 22:29:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKD4h-0002gG-6x for emacs-devel@gnu.org; Fri, 26 Apr 2019 22:28:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKCsO-0002SE-7w for emacs-devel@gnu.org; Fri, 26 Apr 2019 22:15:44 -0400 Original-Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:40943) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hKCsK-0002En-LO for emacs-devel@gnu.org; Fri, 26 Apr 2019 22:15:39 -0400 Original-Received: by mail-ed1-x529.google.com with SMTP id d46so4646217eda.7 for ; Fri, 26 Apr 2019 19:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=OucO7azEqUlyfy8n9BwPTjFzjb4t+5YmVH+EGh2d80Y=; b=Wbz9eko1TkireNm7F5hJEDxyvHfioOoQNI+3KWYf7flSSmR/ZJAxbTZolKnIrQbVJs q1AirNA4eFwIkJDLfaNCEG3ptoovU0hWtFQiV1UMR9n2YoDoDc9u0z9JUcSbUny6HjoY k5VkE0jd3T0jFhVo4ERUz8scUksazxjBmP7siIhSHWfq+czpyGc3N19WvmWXSZugCyI7 nQv6BgMCEWv9sEcuuYdQGeKkkE7DEz1ynDnI5hgiVbKPnahuExFt6sKn2OccmQ4pSMyC NNldxT2qQeSfdYjlGtYfI8/m004511gSBfKPsVJrJMc06tunUlkzHf7Q4N1xUs9QfswS hxew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=OucO7azEqUlyfy8n9BwPTjFzjb4t+5YmVH+EGh2d80Y=; b=f4MDKReTMb40Y366FOREAD54RNFGrgXNIQHRHgtBRvW/Ar77RLwKgwTdc9+wPvdazl RPBVDUzEI1GRSMxldlIy6DX6MiIiWLV/UpKEzQE01Sl/H63yFfqOfWHIuWwWMqI5qS54 +9rMFh6zbIzLzH1jeRg1SYy81iT98KyF/BTLbsWLg4rU8HPw2Pj/u9dfjrirTicTmaKl F2s2M6z4uXGnjL1PGpPuUQFAhguenUMACd7wBd34fLq7mbM+IzRQVGYuu5rIIFKIi4wW QPKi5HVK6aKTw7sTP4bA3fbeNshNx5pGFIRq4eC2aVWit+ufLABA/Rbor7QgeSrJ368T Ocuw== X-Gm-Message-State: APjAAAXbkJPZvJCXqM114AsmUREnVD3xbtHN704txRDXUXX2G6ptUwAP ffzlkSWVmQQ1gy8ENHUVkamrYw== X-Google-Smtp-Source: APXvYqxwk6BqC4YlTytasVY4CA+/y3jdOAxYXQjlGhYnTs+9GhxoH0JzElv8ORMUDdhbjGyAaSErQg== X-Received: by 2002:a50:9905:: with SMTP id k5mr30335111edb.80.1556331324178; Fri, 26 Apr 2019 19:15:24 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:6fa:38d6:1fce:ddb3]) by smtp.gmail.com with ESMTPSA id z3sm4768716eja.32.2019.04.26.19.15.22 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Apr 2019 19:15:23 -0700 (PDT) In-Reply-To: <20190427001453.isjx247kc3lu5fe4@Ergus> (Ergus's message of "Sat, 27 Apr 2019 02:14:53 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::529 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:235977 Archived-At: Ergus writes: > I am looking in the manual for two isearch functionalities that maybe > are already implemented, but I don't find them. Else maybe it is not > so complex to do in elisp (at least for my config) And you could suggest > a right way to implement it. > > 1) isearch-yank-thing-at-point, this should be similar to > isearch-yank-word, but if the cursor is in the middle of a word > it may insert the whole word not just the rest of the current word. > > (swiper provides this with M-n) The closest to this that I'm aware of is isearch-forward-symbol-at-point, bound to 'M-s .' by default. > 2) In "transient-mark-mode" if the region is active before C-s, the > initial input could be the text in the region. Is it there a way to > enable that behavior? > > An alternative for this is a command that yanks the region's text in the > minibuffer when isearch is active so we could bind it in the isearch-map > (for example to M-f). > > Are some of these already implemented? I'm not familiar with any built-in versions of the rest of the functionality you describe, but I'm no expert. If it is indeed not currently present, I for one would welcome such additions. Thanks, -- Basil