emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
blob c2b376466efc6504d8b60cb6944cba1ba982b328 495 bytes (raw)
name: lisp/org-scrlttr2.el 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 
(defun org-scrlttr2-sectioning (level heading) 
  (let ((open "\n\\%s {")
	(close "}"))

    (setq heading (replace-regexp-in-string "\\s-+" "" heading))
    (cond 
     ((string-equal heading "subject")
      (setq open "\n\\setkomavar{%s} {")
      )
     ((string-equal heading "letter")
      (setq open "\n\\begin{%s} {")
      )
     ((string-equal heading "body")
      (setq open "\n")
      (setq close "\n")
      )
     (t 'ignore))
    
    (list heading open close open close))
  )

debug log:

solving c2b3764 ...
found c2b3764 in https://list.orgmode.org/orgmode/4C4CA9F8.7010006@gmail.com/

applying [1/1] https://list.orgmode.org/orgmode/4C4CA9F8.7010006@gmail.com/
diff --git a/lisp/org-scrlttr2.el b/lisp/org-scrlttr2.el
new file mode 100755
index 0000000..c2b3764

1:7: trailing whitespace.
(defun org-scrlttr2-sectioning (level heading) 
1:12: trailing whitespace.
    (cond 
1:24: trailing whitespace.
    
Checking patch lisp/org-scrlttr2.el...
Applied patch lisp/org-scrlttr2.el cleanly.
warning: 3 lines add whitespace errors.

index at:
100755 c2b376466efc6504d8b60cb6944cba1ba982b328	lisp/org-scrlttr2.el

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).