all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Diego Zamboni <diego@zzamboni.org>
To: Lawrence Bottorff <borgauf@gmail.com>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Insert PROPERTIES drawer after heading creation
Date: Wed, 11 Mar 2020 16:37:35 +0100	[thread overview]
Message-ID: <CAGY83EfgewDfCLOWKgr8HM38As+-FKvyWmQWG-J4Gs+1NHyizw@mail.gmail.com> (raw)
In-Reply-To: <CAFAhFSUviyFiwObb=YP6_s+za_zTxpK7128wV6+FsWdJvdO9hg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 731 bytes --]

On Wed, Mar 11, 2020 at 2:14 PM Lawrence Bottorff <borgauf@gmail.com> wrote:

> Yes, thanks. That substring was a bad copy. Any insight why the
> (shell-command "uuidgen" t) wasn't working?
>

I hadn't looked at it yet, but the documentation for =shell-command= gives
the answer:

Execute string COMMAND in inferior shell; display output, if any.
With prefix argument, *insert the COMMAND’s output at point*.


So this function does not return a string that can be concatenated with
others, it actually inserts the output in the buffer, so it's not
guaranteed it will land where you need it.

To have the output of the command returned as a string, I think you should
use =shell-command-to-string=.

--Diego

[-- Attachment #2: Type: text/html, Size: 1989 bytes --]

  reply	other threads:[~2020-03-11 15:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-11  4:39 Insert PROPERTIES drawer after heading creation Lawrence Bottorff
     [not found] ` <CAGY83EdJyQeFWu3zjZtnXos_10WExAzJi7wOS7rxk84W7MonqA@mail.gmail.com>
2020-03-11 13:14   ` Lawrence Bottorff
2020-03-11 15:37     ` Diego Zamboni [this message]
2020-03-11 18:56       ` Lawrence Bottorff
2020-03-11 20:32         ` Diego Zamboni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGY83EfgewDfCLOWKgr8HM38As+-FKvyWmQWG-J4Gs+1NHyizw@mail.gmail.com \
    --to=diego@zzamboni.org \
    --cc=borgauf@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.