all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] * src/editfns.c (Fchar_after): Small optimization.
@ 2017-09-30 18:41 Philipp Stephani
  2017-09-30 19:05 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Philipp Stephani @ 2017-09-30 18:41 UTC (permalink / raw)
  To: emacs-devel; +Cc: Philipp Stephani

---
 src/editfns.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/editfns.c b/src/editfns.c
index b03eb947de..e87c682f97 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1256,10 +1256,10 @@ If POS is out of range, the value is nil.  */)
   if (NILP (pos))
     {
       pos_byte = PT_BYTE;
-      XSETFASTINT (pos, PT);
+      if (pos_byte == ZV_BYTE)
+        return Qnil;
     }
-
-  if (MARKERP (pos))
+  else if (MARKERP (pos))
     {
       pos_byte = marker_byte_position (pos);
       if (pos_byte < BEGV_BYTE || pos_byte >= ZV_BYTE)
-- 
2.14.1




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

end of thread, other threads:[~2017-10-01 16:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-30 18:41 [PATCH] * src/editfns.c (Fchar_after): Small optimization Philipp Stephani
2017-09-30 19:05 ` Eli Zaretskii
2017-10-01 10:56   ` Philipp Stephani
2017-10-01 15:04     ` Eli Zaretskii
2017-10-01 16:30       ` Philipp Stephani

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.