diff options
| author | Glenn Morris <rgm@gnu.org> | 2018-07-07 09:27:44 -0700 | 
|---|---|---|
| committer | Glenn Morris <rgm@gnu.org> | 2018-07-07 09:27:44 -0700 | 
| commit | d3e0fdc24f85de3b33de007b8e1ca24560559d9b (patch) | |
| tree | 751ecc26bd89a0b0d6b9b7a49f299c43fff0a445 /src/editfns.c | |
| parent | 77166e0da2d58f2f6436989b7059d913be5b3439 (diff) | |
| parent | a427de9c86ed31b1fd7599664b3fea0733e633ee (diff) | |
| download | emacs-d3e0fdc24f85de3b33de007b8e1ca24560559d9b.tar.gz | |
Merge from origin/emacs-26
a427de9 (origin/emacs-26) Fix bug #11732
3a04e15 Improve documentation of 'emacs-lock-mode'
9d6ca5a * lisp/imenu.el (imenu-generic-expression): Doc fix.  (Bug#32...
fdd7e7d Improve indexing of 'eval-defun' in ELisp manual
10af989 Fix (length CIRCULAR) documentation
271d1f7 Tramp editorials
4abf94f Clarify and improve doc strings of 'eval-last-sexp' and friends
6cfc7a7 Automate upload of Emacs manuals to gnu.org
b73cde5 Fix MH-E mail composition with GNU Mailutils (SF#485)
0dce5e5 Speed up 'replace-buffer-contents' some more
00fdce0 * doc/emacs/docstyle.texi: Avoid messing up the html output.
Conflicts:
	admin/make-tarball.txt
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 9 | 
1 files changed, 7 insertions, 2 deletions
| diff --git a/src/editfns.c b/src/editfns.c index e16a554de20..4dbf4805721 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3139,6 +3139,9 @@ static unsigned short rbc_quitcounter;    /* Buffers to compare.  */                    \    struct buffer *buffer_a;                      \    struct buffer *buffer_b;                      \ +  /* BEGV of each buffer */			\ +  ptrdiff_t beg_a;				\ +  ptrdiff_t beg_b;				\    /* Whether each buffer is unibyte/plain-ASCII or not.  */ \    bool a_unibyte;				\    bool b_unibyte;				\ @@ -3222,6 +3225,8 @@ differences between the two buffers.  */)    struct context ctx = {      .buffer_a = a,      .buffer_b = b, +    .beg_a = min_a, +    .beg_b = min_b,      .a_unibyte = BUF_ZV (a) == BUF_ZV_BYTE (a),      .b_unibyte = BUF_ZV (b) == BUF_ZV_BYTE (b),      .deletions = SAFE_ALLOCA (del_bytes), @@ -3361,8 +3366,8 @@ static bool  buffer_chars_equal (struct context *ctx,                      ptrdiff_t pos_a, ptrdiff_t pos_b)  { -  pos_a += BUF_BEGV (ctx->buffer_a); -  pos_b += BUF_BEGV (ctx->buffer_b); +  pos_a += ctx->beg_a; +  pos_b += ctx->beg_b;    /* Allow the user to escape out of a slow compareseq call.  */    rarely_quit (++rbc_quitcounter); | 
