Commit bbebae45 authored by David Byers's avatar David Byers
Browse files

Fixed bug 1101.

Detailed changes:
> 	Fix bug 1101:
> 	* komtypes.el (text-list->trim-head): The new length was computed
> 	incorrectly, leading to problems if this function was called
> 	without intervening calls to functions that corrected the error.
>
parent b60afe50
2003-08-30 David Byers <byers@lysator.liu.se>
Fix bug 1101:
* komtypes.el (text-list->trim-head): The new length was computed
incorrectly, leading to problems if this function was called
without intervening calls to functions that corrected the error.
Fix bug 1131:
* parse.el (lyskom-init-parse): Inherit inheritable variables from
lyskom-buffer since the parsers may depend on them.
......
......@@ -793,7 +793,7 @@ Do nothing if the TLIST is less than N elements long."
(set-text-list->texts-internal tlist (nthcdr (max (- (text-list->length tlist) n) 0)
(text-list->texts tlist)))
(when (text-list->length-internal tlist)
(set-text-list->length-internal tlist (- (text-list->length-internal tlist) n)))
(set-text-list->length-internal tlist n))
(unless (text-list->texts tlist)
(set-text-list->length-internal tlist 0)
(set-text-list->tail tlist nil)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment