Files
emacs/lisp
Mattias Engdegård 558b6dbca7 Fix replace-regexp-in-string substring match data translation
For certain patterns, re-matching the same regexp on the matched
substring does not produce correctly translated match data
(bug#15107 and bug#44861).

Using a new builtin function also improves performance since the
number of calls to string-match is halved.

Reported by Kevin Ryde and Shigeru Fukaya.

* lisp/subr.el (replace-regexp-in-string): Translate the match data
using match-data--translate instead of trusting a call to string-match
on the matched string to do the job.
* test/lisp/subr-tests.el (subr-replace-regexp-in-string):
Add test cases.
* src/search.c (Fmatch_data__translate): New internal function.
(syms_of_search): Register it as a subroutine.
2020-11-26 14:20:13 +01:00
..
2020-11-25 22:13:33 +01:00
2020-11-25 22:13:33 +01:00
2020-10-24 20:23:27 +02:00
2020-11-25 22:13:33 +01:00
2020-11-25 22:13:33 +01:00
2020-11-25 22:13:33 +01:00
2020-11-14 17:04:23 +01:00
2020-11-02 09:27:40 -08:00
2020-10-03 12:53:51 +02:00
2020-10-03 12:53:51 +02:00
2020-10-03 12:53:51 +02:00
2020-10-03 12:53:51 +02:00
2020-10-03 12:53:51 +02:00
2020-10-03 12:53:51 +02:00
2020-10-09 11:53:21 +02:00
2020-10-03 12:53:51 +02:00
2020-10-03 12:53:51 +02:00
2020-10-03 12:53:51 +02:00
2020-10-03 12:53:51 +02:00
2020-11-25 12:18:23 +01:00
2020-11-13 09:00:26 -08:00
2020-10-14 19:10:02 -04:00
2020-11-19 20:44:55 +01:00
2020-10-02 09:38:24 -07:00
2020-09-27 09:37:10 -07:00
2020-11-25 22:13:33 +01:00
2020-10-03 12:53:51 +02:00
2020-10-02 09:38:24 -07:00
2020-10-24 20:23:27 +02:00
2020-09-21 14:26:42 +02:00
2020-09-09 20:12:45 +01:00
2020-10-02 09:38:24 -07:00
2020-10-02 09:38:24 -07:00
2020-09-21 14:26:42 +02:00
2020-11-01 06:28:38 -08:00
2020-11-14 13:33:07 +01:00
2020-10-31 11:41:53 +02:00
2020-10-17 09:48:54 -07:00
2020-10-01 15:28:14 +02:00
2020-10-24 20:23:27 +02:00
2020-10-20 13:20:48 +02:00
2020-11-03 21:48:23 +02:00
2020-10-24 20:23:27 +02:00
2020-10-02 09:38:24 -07:00
2020-09-17 11:13:54 +02:00
2020-10-01 15:28:15 +02:00
2020-10-02 09:38:24 -07:00
2020-10-02 09:38:24 -07:00
2020-10-01 20:53:27 +02:00
2020-10-02 09:38:24 -07:00
2020-11-25 22:13:33 +01:00
2020-09-21 14:26:42 +02:00
2020-11-12 22:24:58 +01:00
2020-10-02 09:38:24 -07:00
2020-10-01 15:28:14 +02:00
2020-11-14 17:04:23 +01:00
2020-11-25 22:13:33 +01:00
2020-10-01 15:28:15 +02:00
2020-10-24 15:50:16 +01:00
2020-10-24 13:22:55 +03:00
2020-10-27 01:39:19 +01:00
2020-10-16 15:27:43 +02:00
2020-11-25 22:13:33 +01:00
2020-11-07 09:57:56 -08:00
2020-10-01 15:28:15 +02:00
2020-09-21 14:26:42 +02:00

This directory contains source code for the parts of Emacs that are
written in Emacs Lisp.  *.el files are Emacs Lisp source, and the
corresponding *.elc files are byte-compiled versions.  Byte-compiled
files are architecture-independent.

The term subdirectory contains Lisp files that customize Emacs for
certain terminal types.  When Emacs starts, it checks the TERM
environment variable to get the terminal type and loads
'term/${TERM}.el' if it exists.

The other subdirectories hold Lisp packages grouped by their general
purpose.