0

I have the following function that prints some text in the *Messages* buffer. I want to change this so the text gets printed to a named buffer instead.

(defconst tika-outlshow-details
  "
Show-Entry
  Show the body directly following this heading.

Show-Heading
  Show the current heading and move to its end.\n")


(defun tika-outl-navaid (actm)
  "TODO"

  (interactive
   (list
    (let ( (cseq '("Show" "Hide")) )
      (completing-read "Vista: " cseq nil t "Hide"))))

  (cond
   ((equal actm "Hide")
      (message "%s" tika-outlhide-details))
   ((equal actm "Show")
      (message "%s" tika-outlshow-details))) )
1
  • One question per question please.
    – NickD
    Commented Jun 28, 2023 at 19:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.