aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Stephani2017-09-30 20:40:02 +0200
committerPhilipp Stephani2017-10-01 18:29:40 +0200
commit66d37175ecac41dfb2f854dbb148dcc7ca87b345 (patch)
tree55ebdf561b0ece4fe2e85bde4a3399bbbae4b217
parentbb47c72de35312b742a1964b31ff315727baed00 (diff)
downloademacs-66d37175ecac41dfb2f854dbb148dcc7ca87b345.tar.gz
emacs-66d37175ecac41dfb2f854dbb148dcc7ca87b345.zip
* src/editfns.c (Fchar_after): Small optimization.
-rw-r--r--src/editfns.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/editfns.c b/src/editfns.c
index e326604467c..4dcf7cbe6ef 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1256,10 +1256,10 @@ If POS is out of range, the value is nil. */)
1256 if (NILP (pos)) 1256 if (NILP (pos))
1257 { 1257 {
1258 pos_byte = PT_BYTE; 1258 pos_byte = PT_BYTE;
1259 XSETFASTINT (pos, PT); 1259 if (pos_byte < BEGV_BYTE || pos_byte >= ZV_BYTE)
1260 return Qnil;
1260 } 1261 }
1261 1262 else if (MARKERP (pos))
1262 if (MARKERP (pos))
1263 { 1263 {
1264 pos_byte = marker_byte_position (pos); 1264 pos_byte = marker_byte_position (pos);
1265 if (pos_byte < BEGV_BYTE || pos_byte >= ZV_BYTE) 1265 if (pos_byte < BEGV_BYTE || pos_byte >= ZV_BYTE)