emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Eivind Otto Hjelle <eohjelle@gmail.com>
Cc: 32906@debbugs.gnu.org
Subject: bug#32906: org-in-src-block-p always returns nil
Date: Tue, 02 Oct 2018 19:05:14 +0300	[thread overview]
Message-ID: <83sh1o2v2d.fsf@gnu.org> (raw)
In-Reply-To: <CAGFEQMTOD6sRQmQoGcE2jCrSkvWunS3tA+Wg2W_dTAwMG3HB+g@mail.gmail.com> (message from Eivind Otto Hjelle on Tue, 2 Oct 2018 09:22:56 -0500)

> From: Eivind Otto Hjelle <eohjelle@gmail.com>
> Date: Tue, 2 Oct 2018 09:22:56 -0500
> 
> The function 'org-in-src-block-p' always returns nil on my system
> running Windows 10. 
> 
> How to reproduce this bug starting from 'emacs -Q':
> Define a function 'test-org-in-src-block-p' in the scratch buffer as
> follows:
> 
> (defun test-org-in-src-block-p ()
>   (interactive)
>   (print (org-in-src-block-p)))
>   
> Navigate to a src block in org mode and call 'M-x
> test-org-in-src-block-p'. Now nil is printed to the message buffer.
> 
> I should mention that on my other system running a Linux distribution I
> do not have this problem.

Please show a short Org file where this function returns nil on
Windows, but non-nil on GNU/Linux.  (Are you testing this in the same
Emacs version on both systems, btw?)

> I know that this bug was also reported by Ryan
> on 07 Aug 2014, as his bug report is still in the org mailing list
> archives. Ryan's bug report can be found here:
> 
> https://lists.gnu.org/archive/html/emacs-orgmode/2014-08/msg00305.html

I don't see any bug there, just explanations why Ryan's implementation
was wrong.

> 
> In GNU Emacs 25.3.1 (x86_64-w64-mingw32)
>  of 2017-09-12 built on KAEL
> Windowing system distributor 'Microsoft Corp.', version 10.0.17134

Are you using the version of Org that came with this version of Emacs?
Or are you using a different version?

      parent reply	other threads:[~2018-10-02 16:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAGFEQMTOD6sRQmQoGcE2jCrSkvWunS3tA+Wg2W_dTAwMG3HB+g@mail.gmail.com>
2018-10-02 15:30 ` bug#32906: org-in-src-block-p always returns nil Robert Pluim
2018-10-02 17:39   ` Eivind Otto Hjelle
2018-10-03  7:36     ` Robert Pluim
2018-10-02 16:05 ` Eli Zaretskii [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=83sh1o2v2d.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=32906@debbugs.gnu.org \
    --cc=eohjelle@gmail.com \
    /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).