emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: M-: (org-display-outline-path) doesn't work correctly
Date: Fri, 14 Mar 2014 13:28:13 +0100	[thread overview]
Message-ID: <87r465otgi.fsf@gmail.com> (raw)
In-Reply-To: 87zjkuguzq.fsf@yahoo.fr

Nicolas Richard <theonewiththeevillook@yahoo.fr> writes:

> Thorsten Jolitz <tjolitz@gmail.com> writes:
>> only that promptly another message is shown (I can't use sit-for in
>> the program):
>
> sit-for was just to demonstrate the problem introduced solely by M-:.
> That problem is not present when using interactive commands (i.e. those
> a user can actually use), and no sit-for should be necessary in all
> pratical situations.
>
>> ,-----------------------------
>> | Wrote /home/my/tmpdir/myfile
>> `-----------------------------
>
> Obviously you should find out what's writing to that file after your
> (message ...) statement. I'm not an outshine/outorg user, I have no idea
> what does it.

found it:

,---------------------------------------------------------------------
| Command: write-region start end filename &optional append visit
| 
| This function writes the region (of the current buffer) delimited by
| start and end into the file specified by filename.
| 
| [...]
| 
| Normally, write-region displays a message `Wrote file filename' in
| the echo area. If visit is neither t nor nil nor a string, then this
| message is inhibited. This feature is useful for programs that use
| files for internal purposes, files which the user does not need to
| know about.
`---------------------------------------------------------------------

so 

,-------------------------------------------
| (write-region nil nil filename nil 'VISIT)
`-------------------------------------------

gets rid of the message.

-- 
cheers,
Thorsten

      reply	other threads:[~2014-03-14 12:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-12 14:40 M-: (org-display-outline-path) doesn't work correctly Thorsten Jolitz
2014-03-12 15:08 ` Bastien
2014-03-12 15:48   ` Thorsten Jolitz
2014-03-12 16:12     ` Bastien
2014-03-12 16:53       ` Thorsten Jolitz
2014-03-12 17:44         ` Bastien
2014-03-12 18:17           ` Thorsten Jolitz
2014-03-13  9:28             ` Nicolas Richard
2014-03-13 11:38               ` Thorsten Jolitz
2014-03-13 12:10                 ` Nicolas Richard
2014-03-14 12:28                   ` Thorsten Jolitz [this message]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87r465otgi.fsf@gmail.com \
    --to=tjolitz@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 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).