From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eivind Otto Hjelle Subject: bug#32906: org-in-src-block-p always returns nil Date: Tue, 2 Oct 2018 12:39:34 -0500 Message-ID: References: <87tvm4e57o.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004c99fa057742685d" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7OsL-0001kZ-Rq for emacs-orgmode@gnu.org; Tue, 02 Oct 2018 13:54:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7OeT-0006oq-G5 for emacs-orgmode@gnu.org; Tue, 02 Oct 2018 13:40:16 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58585) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7OeQ-0006nl-Ix for emacs-orgmode@gnu.org; Tue, 02 Oct 2018 13:40:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g7OeQ-0006cw-Bg for emacs-orgmode@gnu.org; Tue, 02 Oct 2018 13:40:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87tvm4e57o.fsf@gmail.com> 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: rpluim@gmail.com Cc: 32906@debbugs.gnu.org --0000000000004c99fa057742685d Content-Type: text/plain; charset="UTF-8" I thought I had updated emacs to the latest version, but apparently not. After upgrading to emacs-26 the command org-in-src-block-p works as expected. Thanks! Best, Eivind On Tue, Oct 2, 2018 at 10:30 AM Robert Pluim wrote: > Eivind Otto Hjelle writes: > > > 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. > > Works for me in emacs-26. Would it be possible to try that version? > > Regards > > Robert > --0000000000004c99fa057742685d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I thought I had updated emacs to the latest version, but a= pparently not. After upgrading to emacs-26 the command org-in-src-block-p w= orks as expected. Thanks!

Best,
Eivind

On Tue, Oct 2, 2018 at = 10:30 AM Robert Pluim <rpluim@gmail.= com> wrote:
Eivind Otto Hjel= le <eohjelle@gma= il.com> writes:

> The function 'org-in-src-block-p' always returns nil on my sys= tem
> running Windows 10.
>
> How to reproduce this bug starting from 'emacs -Q':
> Define a function 'test-org-in-src-block-p' in the scratch buf= fer as
> follows:
>
> (defun test-org-in-src-block-p ()
>=C2=A0 =C2=A0(interactive)
>=C2=A0 =C2=A0(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= .

Works for me in emacs-26. Would it be possible to try that version?

Regards

Robert
--0000000000004c99fa057742685d--