all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Improve the docstring of case-fold-search
@ 2009-07-22  2:17 Bastien
  2009-07-22  3:11 ` Eli Zaretskii
  2009-07-22  3:38 ` Stefan Monnier
  0 siblings, 2 replies; 7+ messages in thread
From: Bastien @ 2009-07-22  2:17 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 508 bytes --]

I suggest to complete the docstring of `case-fold-search' like the
attached patch does.

In the current docstring, the expression "ignore case" is not really
appropriate because the search will not ignore uppercase characters in
the search string.  A very short way to tell this would be "*Non-nil if
searches and matches should ignore lowercase."  But while accurate, this
is confusing IMO.  Hence the long sentence in this patch, inspired by
the "Search case" section of Emacs manual.

Should I apply it?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: buffer.c.patch --]
[-- Type: text/x-diff, Size: 571 bytes --]

--- buffer.c.~1.583.~	2009-07-17 21:12:21.000000000 +0200
+++ buffer.c	2009-07-22 03:55:26.000000000 +0200
@@ -5727,7 +5727,9 @@
 
   DEFVAR_PER_BUFFER ("case-fold-search", &current_buffer->case_fold_search,
 		     Qnil,
-		     doc: /* *Non-nil if searches and matches should ignore case.  */);
+		     doc: /* *Non-nil if searches and matches should ignore case.
+If there is an uppercase character in the search string
+then the search becomes case sensitive.  */);
 
   DEFVAR_PER_BUFFER ("fill-column", &current_buffer->fill_column,
 		     make_number (Lisp_Int),

[-- Attachment #3: Type: text/plain, Size: 14 bytes --]


-- 
 Bastien

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-07-27 21:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-22  2:17 Improve the docstring of case-fold-search Bastien
2009-07-22  3:11 ` Eli Zaretskii
2009-07-22  3:38 ` Stefan Monnier
2009-07-22  8:11   ` Bastien
2009-07-27  2:42   ` Bastien
2009-07-27 17:27     ` Stefan Monnier
2009-07-27 21:01       ` Bastien

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.