emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ebdb afe5495 279/350: Adjust indentation of multi-line


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb afe5495 279/350: Adjust indentation of multi-line field values
Date: Mon, 14 Aug 2017 11:46:53 -0400 (EDT)

branch: externals/ebdb
commit afe5495eaefb7fedf24ffcf255656e5640866d54
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    Adjust indentation of multi-line field values
    
    * ebdb-com.el (ebdb-fmt-record-body): I'm still pretty skeptical about
      this -- I don't know why it works this way, and still wish I could
      just use `fill-paragraph' correctly.
---
 ebdb-com.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ebdb-com.el b/ebdb-com.el
index 858700b..950ccbe 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -530,7 +530,7 @@ This happens in addition to any pre-defined indentation of 
STRING."
         ;; `window-text-width' doesn't work for pop-up buffers,
         ;; they're not displayed yet!  How do we resolve this...?
         (fill-column (window-text-width))
-        (fill-prefix (make-string (+ 3 indent) ?\s))
+        (fill-prefix (make-string (+ 5 indent) ?\s))
         (paragraph-start "[^:]+:[^\n]+$"))
 
     (dolist (c field-list)
@@ -542,7 +542,7 @@ This happens in addition to any pre-defined indentation of 
STRING."
        ;; If I understood the mechanics of filling better, I
        ;; could probably do away with `ebdb-indent-string'
        ;; altogether.
-       (ebdb-indent-string (cdr c) (+ indent 3))))
+       (ebdb-indent-string (cdr c) (+ indent 5))))
       ;; If there are newlines in the value string, assume the field
       ;; knows what's it's doing re filling and formatting.
       (unless (or (string-match-p "\n" (cdr c))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]