From: Nelson Elhage <nelhage@MIT.EDU>
To: emacs-pretest-bug@gnu.org
Subject: bug#3553: 23.0.60; smerge-mode: Remove trailing space in `smerge-base-re'
Date: Sat, 13 Jun 2009 13:25:36 -0400 (EDT) [thread overview]
Message-ID: <200906131725.n5DHPaEt009392@outgoing.mit.edu> (raw)
With merge.conflictstyle=diff3, 'git' generates diff3-style conflict
markers, with mine/base/other sections, but for the 'base' marker, it
only outputs "|||||||\n", with no comment after it. This causes smerge
to miss the base marker, since smerge assumes a comment, and defines:
(defconst smerge-base-re "^||||||| .*\n")
Simply replacing that with
(defconst smerge-base-re "^|||||||.*\n")
Should allow smerge-mode to handle git conflicts, and I can't imagine
it should cause any false-positives otherwise.
- Nelson Elhage
In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4)
of 2009-01-21 on phanatique
Windowing system distributor `The X.Org Foundation', version 11.0.10600000
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: Emacs-Lisp
Minor modes in effect:
diff-auto-refine-mode: t
iswitchb-mode: t
shell-dirtrack-mode: t
display-battery-mode: t
display-time-mode: t
window-number-mode: t
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
Recent input:
C-x C-s C-c 1 C-n M-n C-n C-n C-n M-x d i f f SPC t
e <tab> <return> l <tab> <return> M-p <M-backspace>
<M-backspace> H <tab> s <tab> <return> C-c C-a C-c
2 C-x C-s C-x V s y d y g m m m a y g C-x b * b <return>
M-r c o n <return> <return> C-x C-c C-x V s <return>
y e s <return> M-x s m e m o <tab> <backspace> <backspace>
e <tab> <backspace> <tab> m o <tab> <return> M-< C-c
M-x M-p M-x M-p <return> C-c ^ n <tab> C-/ C-n C-n
C-n C-n M-f C-p C-f C-f C-b C-x 4 b s m e <return>
C-x 4 b s c <return> ( s e t q SPC s m e r g e - b
a s e - r e <tab> SPC C-x b <return> C-x b <return>
" " C-b C-c 1 C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b
C-b C-b C-b C-b C-b C-b C-SPC C-M-f M-w C-x o <backspace>
C-d C-y C-b C-b C-b C-b C-b C-b C-d C-e C-j C-x b <return>
M-x C-g M-< M-x s m e <tab> m o <tab> <return> M-x
M-p <return> C-c ^ b C-c ^ n M-x r e p o r t <tab>
<return> e <backspace> s e <backspace> m e r g e SPC
m o d e SPC - - SPC r e m o v e SPC t t r <backspace>
<backspace> r a i l i n g SPC ' SPC ' SPC i n SPC s
m e r g C-g C-c 1 M-< C-x C-x C-c 2 M-x M-p <return>
M-p <return> C-x k <return> C-c 1 C-x b <return> M-x
r e p o r <tab> <return>
Recent messages:
Smerge mode enabled
Undo!
Mark set [2 times]
Quit
Mark set
Smerge mode disabled
Smerge mode enabled
smerge-match-conflict: Point not in conflict region
Quit
Mark set
next reply other threads:[~2009-06-13 17:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-13 17:25 Nelson Elhage [this message]
2009-06-27 0:26 ` bug#3553: 23.0.60; smerge-mode: Remove trailing space in `smerge-base-re' Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200906131725.n5DHPaEt009392@outgoing.mit.edu \
--to=nelhage@mit.edu \
--cc=3553@emacsbugs.donarmstrong.com \
--cc=emacs-pretest-bug@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.