all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to open editor in --script file?
@ 2019-05-23  6:14 Jean Louis
  2019-05-23 14:02 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Jean Louis @ 2019-05-23  6:14 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I would like to use emacs in a script, and within
script I would like to use helm for selection.

I do get the helm prompt on command line, but not
the editor screen, so I cannot select anything.

Question is how to open the actual editor from the script?

Jean


#!/usr/local/bin/emacs --script
;; Time-stamp: "Thursday, May 23 2019, 08:08"
(setq *home* (getenv "HOME"))
(setq *local-elisp* (concat *home* "/Programming/emacs-lisp/"))
(add-to-list 'load-path *local-elisp*)

(setq *emacs.d* (concat *home* "/.emacs.d/"))
(setq *elpa* (concat *emacs.d* "elpa/"))
	     
(let ((default-directory *elpa*))
  (normal-top-level-add-subdirs-to-load-path))

(load "helm" nil t)

(setq temporary-file-directory "/home/data1/protected/tmp/")
(setenv "TMPDIR" temporary-file-directory)

(load "utilities" nil t)
(load "rcd-db" nil t)

;; (fundamental-mode)
;; (load "helm-mode")

;; Following should select a list within editor
;; and helm and return me ID number, and exit from script.
(rcd/combo-selection "accounts") 





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to open editor in --script file?
  2019-05-23  6:14 How to open editor in --script file? Jean Louis
@ 2019-05-23 14:02 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2019-05-23 14:02 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Thu, 23 May 2019 08:14:56 +0200
> From: Jean Louis <bugs@gnu.support>
> 
> I would like to use emacs in a script, and within
> script I would like to use helm for selection.
> 
> I do get the helm prompt on command line, but not
> the editor screen, so I cannot select anything.
> 
> Question is how to open the actual editor from the script?

You can't, not with --script.  The --script option causes Emacs to run
in batch mode, where it presents no windows/frames.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-05-23 14:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-23  6:14 How to open editor in --script file? Jean Louis
2019-05-23 14:02 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.