aboutsummaryrefslogtreecommitdiffstats
path: root/src/casefiddle.c
Commit message (Collapse)AuthorAgeFilesLines
* (casify_object): Fix up int/EMACS_INT mixup.Stefan Monnier2008-04-011-5/+5
|
* (casify_object): Avoid pathological N^2 worst case ifStefan Monnier2008-03-241-27/+50
| | | | | | every char is changed and has a different byte-length. (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word): Fix int -> EMACS_INT.
* (casify_region): Only call after-change and compositionStefan Monnier2008-02-121-10/+12
| | | | functions on the part of the region that was changed.
* Merge from emacs--devo--0Miles Bader2008-01-091-1/+1
|\ | | | | | | Revision: [email protected]/emacs--unicode--0--patch-312
| * Add 2008 to copyright years.Glenn Morris2008-01-081-1/+1
| |
* | Merge from emacs--devo--0Miles Bader2007-07-271-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 824-831) - Update from CVS - Merge from emacs--rel--22 * emacs--rel--22 (patch 70-74) - Update from CVS Revision: [email protected]/emacs--unicode--0--patch-238
| * Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
| |
* | Merge from emacs--devo--0Miles Bader2007-01-261-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 586-614) - Update from CVS - Update from erc--emacs--22 - Merge from gnus--rel--5.10 - Merge from erc--main--0 - Make byte compiler correctly write circular constants * gnus--rel--5.10 (patch 186-196) - Update from CVS - Merge from emacs--devo--0 Revision: [email protected]/emacs--unicode--0--patch-162
| * Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
| |
* | Merge from emacs--devo--0Miles Bader2006-09-051-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 414-422) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 128-130) - Update from CVS - Merge from emacs--devo--0 Revision: [email protected]/emacs--unicode--0--patch-108
| * * buffer.h (struct buffer_text): New field chars_modiff.Chong Yidong2006-09-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros. * buffer.c (Fbuffer_chars_modified_tick): New function returning value of BUF_CHARS_MODIFF. (syms_of_buffer): Defsubr it. (Fget_buffer_create): Initialize BUF_CHARS_MODIFF. * insdel.c (modify_region): New argument preserve_chars_modiff. Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero. (insert_1_both, insert_from_string_1, insert_from_buffer_1) (adjust_after_replace, adjust_after_replace_noundo) (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF. * lisp.h (modify_region): Add fourth argument in extern. * casefiddle.c (casify_region): Call modify_region with fourth argument zero to assert that CHARS_MODIFF is updated. * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal) (Ftranspose_regions): Likewise. * textprop.c (Fadd_text_properties, Fset_text_properties) (Fremove_text_properties, Fremove_list_of_text_properties): Call modify_region with fourth argument 1 to avoid that CHARS_MODIFF is updated.
| * (casify_object): wrong_type_argument is no-return.Kim F. Storm2006-07-181-1/+1
| |
| * (casify_object): Remove loop around wrong_type_argument.Kim F. Storm2006-07-121-55/+53
| |
* | (casify_object): Sync with HEAD.Kenichi Handa2006-07-201-63/+61
| |
* | Revision: [email protected]/emacs--unicode--0--patch-13Miles Bader2006-02-081-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 43-57) - Update from CVS - Merge from erc--emacs--0 - Make constrain-to-field notice overlays - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 18-21) - Update from CVS - Merge from emacs--devo--0
| * Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
| |
| * (casify_object): Fix for the case that caseKenichi Handa2005-10-141-2/+6
| | | | | | | | conversion change the byte length.
* | Revision: [email protected]/emacs--unicode--0--patch-78Miles Bader2005-08-261-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 514-518) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 104-105) - Update from CVS
| * Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-2/+2
| |
* | Revision: [email protected]/emacs--unicode--0--patch-68Miles Bader2005-07-071-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 459-473) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 86-87) - Update from CVS
| * Update FSF's address.Lute Kamstra2005-07-041-2/+2
| |
* | Revision: [email protected]/emacs--unicode--0--patch-11Miles Bader2005-02-061-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge from emacs--cvs-trunk--0 Patches applied: * [email protected]/emacs--cvs-trunk--0--patch-69 - [email protected]/emacs--cvs-trunk--0--patch-71 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-72 src/dispextern.h (xassert): Enable unconditionally. * [email protected]/emacs--cvs-trunk--0--patch-73 - [email protected]/emacs--cvs-trunk--0--patch-81 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-82 Merge from gnus--rel--5.10 * [email protected]/gnus--rel--5.10--patch-12 Merge from emacs--cvs-trunk--0 * [email protected]/gnus--rel--5.10--patch-13 Update from CVS
| * (casify_region): Fix previous change.Kenichi Handa2005-02-021-1/+2
| |
| * (casify_object): Enable changing characters ofKenichi Handa2005-02-011-58/+28
| | | | | | | | | | | | different byte length. (casify_region): Fix loop condition, args to replace_range_2, and update opoint_byte.
| * (casify_region): Handle changes in byte-length using replace_range_2.Richard M. Stallman2004-11-021-12/+11
| |
| * Fix SAFE_FREE calls. Replace SAFE_FREE_LISP calls.Kim F. Storm2004-10-261-1/+1
| |
| * (casify_object): Use SAFE_ALLOCA.Kim F. Storm2004-06-211-2/+7
| |
* | (casify_region): Handle changes in byte-lengthKenichi Handa2004-12-061-10/+18
| | | | | | | | using replace_range_2 (sync to HEAD).
* | Revision: [email protected]/emacs--unicode--0--patch-15Miles Bader2004-06-281-2/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge from emacs--cvs-trunk--0 Patches applied: * [email protected]/emacs--cvs-trunk--0--patch-218 - [email protected]/emacs--cvs-trunk--0--patch-220 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-221 Restore deleted tagline in etc/TUTORIAL.ru * [email protected]/emacs--cvs-trunk--0--patch-222 - [email protected]/emacs--cvs-trunk--0--patch-228 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-229 Remove TeX output files from the archive * [email protected]/emacs--cvs-trunk--0--patch-230 - [email protected]/emacs--cvs-trunk--0--patch-247 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-248 src/lisp.h (CYCLE_CHECK): Macro moved from xfaces.c * [email protected]/emacs--cvs-trunk--0--patch-249 - [email protected]/emacs--cvs-trunk--0--patch-256 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-258 - [email protected]/emacs--cvs-trunk--0--patch-263 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-264 Update from CVS: lispref/display.texi: emacs -> Emacs. * [email protected]/emacs--cvs-trunk--0--patch-265 - [email protected]/emacs--cvs-trunk--0--patch-274 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-275 Update from CVS: man/makefile.w32-in: Revert last change * [email protected]/emacs--cvs-trunk--0--patch-276 - [email protected]/emacs--cvs-trunk--0--patch-295 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-296 Allow restarting an existing debugger session that's exited * [email protected]/emacs--cvs-trunk--0--patch-297 - [email protected]/emacs--cvs-trunk--0--patch-299 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-300 - [email protected]/emacs--cvs-trunk--0--patch-327 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-328 Update from CVS: src/.gdbinit (xsymbol): Fix last change. * [email protected]/emacs--cvs-trunk--0--patch-329 - [email protected]/emacs--cvs-trunk--0--patch-344 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-345 Tweak source regexps so that building in place won't cause problems * [email protected]/emacs--cvs-trunk--0--patch-346 - [email protected]/emacs--cvs-trunk--0--patch-351 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-352 Update from CVS: lisp/flymake.el: New file. * [email protected]/emacs--cvs-trunk--0--patch-353 - [email protected]/emacs--cvs-trunk--0--patch-361 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-362 Support " [...]" style defaults in minibuffer-electric-default-mode * [email protected]/emacs--cvs-trunk--0--patch-363 (read-number): Use canonical format for default in prompt. * [email protected]/emacs--cvs-trunk--0--patch-364 - [email protected]/emacs--cvs-trunk--0--patch-367 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-368 Improve display-supports-face-attributes-p on non-ttys * [email protected]/emacs--cvs-trunk--0--patch-369 Rewrite face-differs-from-default-p * [email protected]/emacs--cvs-trunk--0--patch-370 Move `display-supports-face-attributes-p' entirely into C code * [email protected]/emacs--cvs-trunk--0--patch-371 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-372 Simplify face-differs-from-default-p; don't consider :stipple. * [email protected]/emacs--cvs-trunk--0--patch-373 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-374 (tty_supports_face_attributes_p): Ensure attributes differ from default * [email protected]/emacs--cvs-trunk--0--patch-375 - [email protected]/emacs--cvs-trunk--0--patch-376 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-377 (Fdisplay_supports_face_attributes_p): Work around bootstrapping problem * [email protected]/emacs--cvs-trunk--0--patch-378 - [email protected]/emacs--cvs-trunk--0--patch-380 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-381 Face merging cleanups * [email protected]/emacs--cvs-trunk--0--patch-382 - [email protected]/emacs--cvs-trunk--0--patch-384 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-385 src/xfaces.c (push_named_merge_point): Return 0 if a cycle is detected * [email protected]/emacs--cvs-trunk--0--patch-386 - [email protected]/emacs--cvs-trunk--0--patch-395 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-396 Tweak arch tagging to make build/install-in-place less annoying * [email protected]/emacs--cvs-trunk--0--patch-397 Work around vc-arch problems when building eshell * [email protected]/emacs--cvs-trunk--0--patch-398 Tweak permissions * [email protected]/emacs--cvs-trunk--0--patch-399 Tweak directory permissions * [email protected]/emacs--cvs-trunk--0--patch-400 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-401 More build-in-place tweaking of arch tagging * [email protected]/emacs--cvs-trunk--0--patch-402 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-403 Yet more build-in-place tweaking of arch tagging * [email protected]/emacs--cvs-trunk--0--patch-404 - [email protected]/emacs--cvs-trunk--0--patch-409 Update from CVS * [email protected]/emacs--cvs-trunk--0--patch-410 Make sure image types are initialized for lookup too * [email protected]/emacs--cvs-trunk--0--patch-411 - [email protected]/emacs--cvs-trunk--0--patch-416 Update from CVS
| * Update copyright.Kim F. Storm2004-06-161-1/+2
| |
| * (casify_object): Return OBJ unchanged if not real char.Richard M. Stallman2004-05-221-0/+6
| |
* | Sync to HEADKenichi Handa2004-04-161-0/+3
| |
* | *** empty log message ***Kenichi Handa2003-09-081-117/+84
|\ \
| * | (casify_object): Fix previous change.Kenichi Handa2002-09-031-6/+2
| | |
| * | (casify_object): Simplified. Handle the case thatKenichi Handa2002-08-201-114/+83
| | | | | | | | | | | | | | | the case conversion change the byte length. (casify_region): Likewise
| * | (casify_region): Fix multibyte case.Kenichi Handa2002-03-051-1/+2
| | |
| * | Include "character.h" instead of "charset.h".Kenichi Handa2002-03-011-1/+1
| | |
* | | New directoryKenichi Handa2003-09-081-3/+0
| |/ |/|
* | Add arch taglinesMiles Bader2003-09-011-0/+3
| |
* | (casify_region): Don't treat a prefix char as partStefan Monnier2002-10-211-1/+1
| | | | | | | | of a word when at the beginning.
* | * casefiddle.c (casify_object): Use SSET.Ken Raeburn2002-07-161-1/+1
| |
* | Most uses of XSTRING combined with STRING_BYTES or indirection changed toKen Raeburn2002-07-151-6/+6
|/ | | | | SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references left unchanged for now.
* Update usage of CHECK_ macros (remove unused second argument).Pavel Janík2001-11-021-1/+1
|
* Change doc-string comments to `new style' [w/`doc:' keyword].Pavel Janík2001-10-201-54/+54
|
* Include keymap.h.Stefan Monnier2001-10-101-0/+1
|
* (casify_object): Remove unused variable `tolen'.Eli Zaretskii2001-01-021-1/+1
|
* Include composite.h.Kenichi Handa1999-12-151-13/+20
| | | | | | (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a multibyte character. Adjusted for the change of CHAR_STRING. (casify_region): Likewise. Call update_compositions.
* * editfns.c (Fdelete_and_extract_region): New function.Stefan Monnier1999-12-071-1/+1
| | | | | | | | | | | | (syms_of_editfns): register it. * insdel.c (del_range): update del_range_1 call. (del_range_1, del_range_2): Add a ret_string argument to request that the deleted text be returned. (del_range_byte, del_range_both): Update del_range_2 call. * lisp.h (del_range_1, del_range_2): change prototype * casefiddle.c (casify_region): Update del_range_1 call. * coding.c (code_convert_region): Update del_range_2 call. * fileio.c (Finsert_file_contents): Update del_range_2 call.
* (casify_object): Remove unused variables.Gerd Moellmann1999-09-201-2/+0
| | | | (casify_region): Ditto.
* (casify_object): Use make_multibyte_stringKarl Heuer1999-06-241-1/+2
| | | | if we casify a multibyte string.