Permalink
Browse files

* slime.el (slime-oneliner): Use minibuffer width instead of the

width of the current frame, minibuffer can be in a separate frame
with a different width.
Patch by Greg Pfeil (lp#1004252).
  • Loading branch information...
stassats committed May 25, 2012
1 parent ec6b99d commit 2f2745ec589fb96147e56dc79adb4c49eed6167b
Showing with 8 additions and 1 deletion.
  1. +7 −0 ChangeLog
  2. +1 −1 slime.el
View
@@ -1,3 +1,10 @@
+2012-05-25 Stas Boukarev <stassats@gmail.com>
+
+ * slime.el (slime-oneliner): Use minibuffer width instead of the
+ width of the current frame, minibuffer can be in a separate frame
+ with a different width.
+ Patch by Greg Pfeil (lp#1004252).
+
2012-05-21 Helmut Eller <heller@common-lisp.net>
Reduce dependecy on pre-defined faces.
View
@@ -786,7 +786,7 @@ It should be used for \"background\" messages such as argument lists."
"Return STRING truncated to fit in a single echo-area line."
(substring string 0 (min (length string)
(or (position ?\n string) most-positive-fixnum)
- (1- (frame-width)))))
+ (1- (window-width (minibuffer-window))))))
;; Interface
(defun slime-set-truncate-lines ()

0 comments on commit 2f2745e

Please sign in to comment.