]> git.eshelyaron.com Git - emacs.git/commitdiff
*** empty log message ***
authorGerd Moellmann <gerd@gnu.org>
Sun, 17 Oct 1999 12:57:38 +0000 (12:57 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sun, 17 Oct 1999 12:57:38 +0000 (12:57 +0000)
lisp/ChangeLog
src/ChangeLog

index e377509053f268bace5608bf2d43051da4c02a3f..7a3631e1771598c0874aeac937c54ea64e977ecb 100644 (file)
@@ -1,3 +1,51 @@
+1999-10-17  Miles Bader  <miles@gnu.org>
+
+       * simple.el: Doc fixes.
+
+1999-10-17  Miles Bader  <miles@gnu.org>
+
+       * simple.el (previous-matching-history-element, next-history-element): 
+       Change to work correctly even if the point is in the prompt.
+       (choose-completion-string): Likewise.
+       (minibuffer-prompt-width): New function (compatibility with old subr).
+
+       * textmodes/paragraphs.el (forward-sentence, forward-paragraph): 
+       When constraining the final position to the current field,
+       don't use the ONLY-IN-LINE mode of constrain-to-field.
+
+1999-10-17  Miles Bader  <miles@gnu.org>
+
+       * simple.el (line-move): Supply new ESCAPE-FROM-EDGE argument to
+       constrain-to-field.
+       * textmodes/paragraphs.el (forward-sentence): Likewise.
+
+1999-10-17  Miles Bader  <miles@gnu.org>
+
+       * simple.el (line-move): Use constrain-to-field to avoid
+       moving into a prompt.
+       (previous-complete-history-element): Clarify doc string.
+       (next-complete-history-element): Likewise.
+       Use field-beginning instead of point-min.
+       (next-matching-history-element): Use field-beginning and
+       erase-field instead of point-min and erase-buffer.
+       * textmodes/paragraphs.el
+       (forward-paragraph, forward-sentence): Likewise.
+       (backward-kill-paragraph, backward-kill-sentence): Remove code to
+       constrain the kill to an field, as the movement commands now
+       do this.
+
+1999-10-17  Miles Bader  <miles@gnu.org>
+
+       * simple.el (previous-matching-history-element): Get the
+       minibuffer input with field-string instead of buffer-string.
+       (choose-completion-string): Likewise.
+       (next-history-element): Likewise.
+       Erase the minibuffer input with erase-field, not erase-buffer.
+       Use field-beginning to find the beginning of the input.
+       * textmodes/paragraphs.el (backward-kill-sentence): 
+       Remove minibuffer-prompt hack.
+       Constrain to any input field.
+
 1999-10-17  Sam Steingold  <sds@ksp.com>
 
        * bindings.el (completion-ignored-extensions): Added ".sparcf"
index 5a166a3234a7e3673568ea02db5b610c2265d5bc..4ce465572b9c7665b024ebaf486b8cf05f6f21e5 100644 (file)
@@ -1,3 +1,96 @@
+1999-10-17  Miles Bader  <miles@gnu.org>
+
+       * editfns.c: Doc fix.
+
+1999-10-17  Miles Bader  <miles@gnu.org>
+
+       * editfns.c (Fconstrain_to_field): Make sure we don't violate the
+       argument preconditions of find_before_next_newline in the case
+       where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
+       was indeed at the edge.
+
+1999-10-17  Miles Bader  <miles@gnu.org>
+
+       * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
+       ESCAPE_FROM_EDGE parameter to Ffield_beginning.
+
+       * editfns.c (text_property_eq, text_property_stickiness): Don't
+       use initializers for auto variables of type Lisp_Object.
+       (find_field): Likewise.  Use braces around nested ifs.
+       (Fline_end_position): Store the raw eol in a variable, so that the
+       final expression doesn't look so ugly.
+       (Fconstrain_to_field): Doc fix.
+       (preceding_pos): Renamed from `preceeding_pos'.
+       (text_property_stickiness, find_field): Call preceding_pos,
+       not preceeding_pos.
+
+1999-10-17  Miles Bader  <miles@gnu.org>
+
+       * editfns.c (Ffield_string_no_properties): New function.
+       (text_property_stickiness, preceeding_pos): New functions.
+       (Ffield_string): Remove PROPS parameter.
+       (find_field): Add MERGE_AT_BOUNDARY parameter.
+       Rewrite to use stickiness of `field' property to resolve
+       ambiguous cases.
+       (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
+       (Fconstrain_to_field): Likewise.
+       (syms_of_editfns): Init Sfield_string_no_properties.
+       (Ffield_string, Ferase_field, Ffield_end): 
+       Supply new MERGE_AT_BOUNDARY argument to find_field.
+       (Fline_beginning_position, Fline_end_position): Supply new
+       ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
+       Pass a value of Qt for the ONLY_IN_LINE argument to
+       Fconstrain_to_field (only matters if N != 1).
+       * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
+       to Fconstrain_to_field.
+
+       * minibuf.c (Fminibuffer_complete_word): Use
+       Ffield_beginning to find the prompt end.
+
+1999-10-17  Miles Bader  <miles@gnu.org>
+
+       * editfns.c (Fconstrain_to_field): Add get/set-current-point
+       behavior when NEW_POS is nil.
+       (find_field): Use XSETFASTINT instead of make_number.
+       * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
+       input string by seeing where the field begins, instead of
+       looking at text-properties.
+
+1999-10-17  Miles Bader  <miles@gnu.org>
+
+       * editfns.c (Qfield): New variable.
+       (find_field, Ferase_field, Ffield_string,
+       Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
+       (Fline_beginning_position, Fline_end_position): Constrain to any field.
+       (make_buffer_string_both): Remove minibuffer-prompt hack.
+       (syms_of_editfns): Initialize Qfield, and subr entries for
+       field functions above.
+       * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
+       minibuf_save_list.
+       Don't initialize minibuffer prompt length.
+       Wrap prompt text-properties around the entire prompt.
+       Add 'prompt text-property to prompt.
+       Get final value with Ffield_string instead of make_buffer_string.
+       (read_minibuf_unwind): Don't restore minibuffer prompt length from
+       minibuf_save_list.
+       (do_completion): Get minibuffer input with Ffield_string
+       instead of Fbuffer_string.
+       Erase minibuffer input with Ferase_field instead of erase_buffer.
+       (Fminibuffer_complete_and_exit): Likewise.
+       Test whether buffer is empty by looking for the 'prompt text
+       property at the end.
+       Set prompt length by looking for the end of the prompt text property,
+       and save prompt length for later use (since there is no longer a
+       buffer variable to get it from).
+       (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
+       (syms_of_minibuf): Remove initializations of
+       Sminibuffer_prompt_width and Sminibuffer_prompt_end.
+       * buffer.h (struct buffer): Remove prompt_end_charpos field.
+       * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer): 
+       Don't initialize prompt_end_charpos field.
+       * syntax.c (Fforward_word): Likewise.
+       Constrain to any field.
+
 1999-10-16  Gerd Moellmann  <gerd@gnu.org>
 
        * window.c (enum save_restore_action): New.