all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* tabs, git diff and git apply
@ 2020-11-28  9:29 martin rudalics
  2020-11-28  9:39 ` Andreas Schwab
  2020-11-28 14:40 ` Stefan Monnier
  0 siblings, 2 replies; 20+ messages in thread
From: martin rudalics @ 2020-11-28  9:29 UTC (permalink / raw)
  To: emacs-devel

Some three lines appearing in my window.c as

       if (WINDOWP (w->contents))
	cont = foreach_window_1 (XWINDOW (w->contents), fn, user_data);
       else

appear in *shell* after git diff as

+      if (WINDOWP (w->contents))
+ 	cont = foreach_window_1 (XWINDOW (w->contents), fn, user_data);
+      else

Note the extra space after the "+" in the second line and the off-by-one
indentation.  A subsequent git apply then complains about

/home/martin/temp/master..changes-2020-11-28.diff:3847: space before tab in indent.
  	cont = foreach_window_1 (XWINDOW (w->contents), fn, user_data);

Now my sources contain many lines where text is preceded by exactly one
tab on its line but this is the only one that produces such a failure.
Does anyone have an explanation for that behavior?

Thanks in advance, martin



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

end of thread, other threads:[~2020-11-29  9:56 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-28  9:29 tabs, git diff and git apply martin rudalics
2020-11-28  9:39 ` Andreas Schwab
2020-11-28 10:15   ` martin rudalics
2020-11-28 10:23     ` Andreas Schwab
2020-11-28 10:28       ` martin rudalics
2020-11-28 12:08         ` Andreas Schwab
2020-11-28 12:45           ` martin rudalics
2020-11-28 13:34             ` Andreas Schwab
2020-11-28 14:20               ` martin rudalics
2020-11-28 17:27         ` Alfred M. Szmidt
2020-11-28 18:23           ` martin rudalics
2020-11-28 18:52             ` Alfred M. Szmidt
2020-11-29  8:21               ` martin rudalics
2020-11-29  9:13                 ` Alfred M. Szmidt
2020-11-29  9:52                   ` martin rudalics
2020-11-29  9:56                   ` Yuri Khan
2020-11-28 14:40 ` Stefan Monnier
2020-11-28 15:45   ` martin rudalics
2020-11-28 16:47     ` Stefan Monnier
2020-11-28 18:22       ` martin rudalics

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.