changeset 25015:7730c6f39ef5

(Fbeginning_of_line) [PROMPT_IN_BUFFER]: Set point to end of prompt if applied to a mini-buffer and BEG reached.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 21 Jul 1999 21:43:52 +0000
parents 1c522baf1a3c
children 15a2436cb80f
files src/cmds.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cmds.c	Wed Jul 21 21:43:52 1999 +0000
+++ b/src/cmds.c	Wed Jul 21 21:43:52 1999 +0000
@@ -163,7 +163,17 @@
   else
     CHECK_NUMBER (n, 0);
 
+#if !NO_PROMPT_IN_BUFFER
+  {
+    int pos = XFASTINT (Fline_beginning_position (n));
+    if (INTEGERP (current_buffer->minibuffer_prompt_length)
+	&& pos < XFASTINT (current_buffer->minibuffer_prompt_length))
+      pos = XFASTINT (current_buffer->minibuffer_prompt_length);
+    SET_PT (pos);
+  }
+#else
   SET_PT (XINT (Fline_beginning_position (n)));
+#endif
   return Qnil;
 }