From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii Subject: bug#32906: org-in-src-block-p always returns nil Date: Tue, 02 Oct 2018 19:05:14 +0300 Message-ID: <83sh1o2v2d.fsf@gnu.org> References: Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7NBV-0002CG-Ns for emacs-orgmode@gnu.org; Tue, 02 Oct 2018 12:06:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7NBS-0005tu-GU for emacs-orgmode@gnu.org; Tue, 02 Oct 2018 12:06:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58409) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7NBS-0005tp-Bk for emacs-orgmode@gnu.org; Tue, 02 Oct 2018 12:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g7NBS-0003Yi-5I for emacs-orgmode@gnu.org; Tue, 02 Oct 2018 12:06:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: (message from Eivind Otto Hjelle on Tue, 2 Oct 2018 09:22:56 -0500) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Eivind Otto Hjelle Cc: 32906@debbugs.gnu.org > From: Eivind Otto Hjelle > 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?