From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Yanking in isearch mode Date: Tue, 1 Jun 2010 07:59:57 -0700 Message-ID: References: <4C04E7EF.70109@pobox.com> <4C051B5E.6070902@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1275406271 7040 80.91.229.12 (1 Jun 2010 15:31:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Jun 2010 15:31:11 +0000 (UTC) To: "'Suvayu Ali'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 01 17:31:10 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OJTQp-0001RK-Ju for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Jun 2010 17:31:07 +0200 Original-Received: from localhost ([127.0.0.1]:58984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJTQp-00035T-68 for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Jun 2010 11:31:07 -0400 Original-Received: from [140.186.70.92] (port=35835 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJTKS-00073a-Vr for help-gnu-emacs@gnu.org; Tue, 01 Jun 2010 11:24:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJSyQ-0003DF-KD for help-gnu-emacs@gnu.org; Tue, 01 Jun 2010 11:01:48 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:51191) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJSyQ-0003D1-Dd for help-gnu-emacs@gnu.org; Tue, 01 Jun 2010 11:01:46 -0400 Original-Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o51F1hk5000499 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 1 Jun 2010 15:01:44 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o51F1dCQ018137 for ; Tue, 1 Jun 2010 15:01:39 GMT Original-Received: from abhmt019.oracle.com by acsmt355.oracle.com with ESMTP id 286346571275404399; Tue, 01 Jun 2010 07:59:59 -0700 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 01 Jun 2010 07:59:57 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4C051B5E.6070902@gmail.com> Thread-Index: AcsBmCD4NO67B7CQSgK7l2pIOZZGeQAAZI9A X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-Auth-Type: Internal IP X-Source-IP: rcsinet15.oracle.com [148.87.113.117] X-CT-RefId: str=0001.0A090207.4C0520D8.014F:SCFMA4539811,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73805 Archived-At: > The yank with M-y is all lower case and then the i-search > becomes case insensitive. Is their any way it can preserve the case? Sounds like a bug. But see below. What should happen is that search always respects `case-fold-search'. And that include `M-y' yanking. Suppose you copy some text "ABC" to the kill ring. If `case-fold-search' is non-nil when you use `M-y' then it yanks "abc" and search is case-insensitive. But if `case-fold-search' is nil when you use `M-y' then it yanks "ABC" and search is case-sensitive. You can toggle case-sensitivity during isearch with `M-c'. However, that doesn't change the search string. So if search is case-insensitive and the search string is "abc" then it stays "abc" after `M-c' and it searches for only lower-case "abc". You can always use `M-e' to edit the search string - e.g. `M-u' to make words there uppercase.