help-gnu-emacs
[Top][All Lists]
Advanced

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

Example use of `eev'


From: Jean Louis
Subject: Example use of `eev'
Date: Sat, 05 Jun 2021 16:02:20 +0300

I don't know if it is example of `eev' hyperlinks or Emacs Lisp
hyperlinks. But it is faster to press M-e than C-x C-e and faste to go
back with M-k than C-x C-k

Often I have case where there is public package, published on a
website straight from source and some testing symbolic expressions
that contain private data. Such private data should not appear in the
public document, yet ist is needed.

This is the end of file: rcd-mail.el responsible to send emails to
thousands of people.

(defun rcd-mailutils-mail (text subject from-name from-email to-name to-email 
&optional html cc-list bcc-list sendmail)
  (let* ((alternative (when html '("--alternative")))
         (html-file (when html (rcd-mailutils-mail-html html)))
         (text-file (rcd-mailutils-mail-text text))
         (subject (rcd-mailutils-mail-subject subject)) 
         (return (list "-r" from-email))
         (cc (rcd-mailutils-mail-cc cc-list))
         (bcc (rcd-mailutils-mail-bcc bcc-list))
         (from (rcd-mailutils-mail-from from-email from-name))
         (to (rcd-mailutils-mail-to to-email to-name))
         (sendmail (rcd-mailutils-mail-sendmail sendmail))
         (content-type (list "--content-type=text/plain"))
         (args (append sendmail subject from cc bcc return alternative 
html-file content-type to)))
    (apply 'call-process "mail" text-file nil nil args)))

;; Hyperscope: (hyperscope-description-show 38302)

(provide 'rcd-mail)

;;; rcd-mail.el ends here

Then one can see on the end the "Hyperscope" link, it is just a
function that jumps to the Emacs Lisp snippet and buffer. Snippet is
private and should not appear in the publicly published
package. Private snippet can then be tested in other buffer that does
the test for the function in former buffer.

Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

Sign an open letter in support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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