From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 02 11:16:37 2018 Received: (at submit) by debbugs.gnu.org; 2 Oct 2018 15:16:37 +0000 Received: from localhost ([127.0.0.1]:34409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7MPd-0000Lo-AN for submit@debbugs.gnu.org; Tue, 02 Oct 2018 11:16:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37537) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7LnE-0007rn-Am for submit@debbugs.gnu.org; Tue, 02 Oct 2018 10:36:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7Ln7-0008Qv-Jb for submit@debbugs.gnu.org; Tue, 02 Oct 2018 10:36:50 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37579) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g7Ln7-0008Qr-FP for submit@debbugs.gnu.org; Tue, 02 Oct 2018 10:36:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7Ln5-0005U0-JG for bug-gnu-emacs@gnu.org; Tue, 02 Oct 2018 10:36:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7LZt-0002af-Li for bug-gnu-emacs@gnu.org; Tue, 02 Oct 2018 10:23:11 -0400 Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]:37132) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7LZt-0002aS-86 for bug-gnu-emacs@gnu.org; Tue, 02 Oct 2018 10:23:09 -0400 Received: by mail-oi1-x235.google.com with SMTP id e17-v6so1644418oib.4 for ; Tue, 02 Oct 2018 07:23:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=fRfbNAq00TvM8Gn2n3pFSARaJifTfdg28GSXWM1CdVg=; b=rhM7Iog4La6GcKtEmVnS5eN94YhoubdKbd5HC+EED+BjE34IA1bgP/tgmuZVD6NpAD poamvjup/1WZur5S524OKGyeva99+KDhzz2ZdKbheBhMyDTlZFq1LiMdWf4YHeUTTg8U R9AOnTJfRn0iJBRj+PkRzECC0CRqRETgptUHowgEyU31SVjex9CXnwVFB/TY8biGiW0w uNyqlTUxWhEbxs9N/1wQ05I1O8NWaFNuD1Rq0OXMCQok312V9TMazOJ8ekIZ+CBeTIMI eDIzdvMVKdt7fsRs5dDxeaRLDlY4RA1zJxwYsHEalzdvQHqpENE2RlHmPhw+XkqxEmhJ AWRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=fRfbNAq00TvM8Gn2n3pFSARaJifTfdg28GSXWM1CdVg=; b=N0JJEl1eusJXnqXU4WgN6Jb/Eq4OD0HvSZXAOkxH1egfUVBETCH91az2p/0mLzkZ6E IBIUpfSp8ca0BBc2KGyQue6h89hSHlhn/8xVMVcnEbAVNZRPfVW4Sd6ru6GTjezc3PMN q9PSyKY4PJrsETWXyaF07vIerwyCsK6P8/4Utmo02Z5vECyo/m0J4ZKNyXYDXmDaZTgc G+PTmRcayw3XkXbmB1M7mFXa6t7+qGbkbr6GToSMyXFCxVvf04+cbRic8WYyeFurKXgp UQ0zZTVwABUjChF4p2QHKDyU5wk3G9XLRbRrdYXDIqtoRVJPA5Rkmv3nEjYFLJKnGd3l TKrQ== X-Gm-Message-State: ABuFfojKjF+9ZxqmsWV451+YuKtVyjTkEl7B/yPW7zUZePIoAj0pxi+u /mTNUDqRweJMfF3eRHUzA1CoS6Td94nncdvCxmLcSvB/ X-Google-Smtp-Source: ACcGV62ACrWtM7L77wzbZrGQQhmWlskH4LSj2h0mo+rPhDp/dLE4PIIDa9K1Da9pvhsKrm9TAu6LijfROJm5gHz/Lpg= X-Received: by 2002:aca:d946:: with SMTP id q67-v6mr7925023oig.212.1538490187538; Tue, 02 Oct 2018 07:23:07 -0700 (PDT) MIME-Version: 1.0 From: Eivind Otto Hjelle Date: Tue, 2 Oct 2018 09:22:56 -0500 Message-ID: Subject: org-in-src-block-p always returns nil To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="0000000000001e642d05773fa908" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 02 Oct 2018 11:16:35 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --0000000000001e642d05773fa908 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. 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 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 Configured using: 'configure --prefix=3D/tmp/emacs --without-imagemagick --without-dbus --with-modules 'CFLAGS=3D-O2 -g0'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS MODULES Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: Org Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Undo! [10 times] user-error: No further undo information [3 times] nil You can run the command =E2=80=98test-in-block=E2=80=99 with M-x t-bl RET nil Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec password-cache epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode mail-prsvr mail-utils org-element org-rmail org-mhe org-irc org-info org-gnus gnus-util org-docview doc-view subr-x jka-compr image-mode dired cl-loaddefs pcase cl-lib org-bibtex bibtex org-bbdb org-w3m org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint comint ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu easymenu calendar cal-loaddefs time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 142694 8689) (symbols 56 26277 0) (miscs 48 67 99) (strings 32 37651 5222) (string-bytes 1 1140795) (vectors 16 19091) (vector-slots 8 497556 4809) (floats 8 209 56) (intervals 56 350 31) (buffers 976 19)) --0000000000001e642d05773fa908 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The function 'org-in-src-block-p= ' always returns nil on my system
running Windows 10.=C2= =A0

How to reproduce this bug starting from 'e= macs -Q':
Define a function 'test-org-in-src-block-p'= in the scratch buffer as
follows:

(defu= n test-org-in-src-block-p ()
=C2=A0 (interactive)
=C2= =A0 (print (org-in-src-block-p)))
=C2=A0=C2=A0
Navigate= to a src block in org mode and call 'M-x
test-org-in-src-blo= ck-p'. Now nil is printed to the message buffer.

I should mention that on my other system running a Linux distribution I<= /div>
do not have this problem. I know that this bug was also reported = by Ryan
on 07 Aug 2014, as his bug report is still in the org mai= ling list
archives. Ryan's bug report can be found here:







In GNU Emacs 25.3.1 (= x86_64-w64-mingw32)
=C2=A0of 2017-09-12 built on KAEL
W= indowing system distributor 'Microsoft Corp.', version 10.0.17134
Configured using:
=C2=A0'configure --prefix=3D/tmp/e= macs --without-imagemagick --without-dbus
=C2=A0--with-modules &#= 39;CFLAGS=3D-O2 -g0''

Configured features:=
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB<= /div>
TOOLKIT_SCROLL_BARS MODULES

Important se= ttings:
=C2=A0 value of $LANG: ENU
=C2=A0 locale-coding= -system: cp1252

Major mode: Org

Minor modes in effect:
=C2=A0 tooltip-mode: t
= =C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t
<= div>=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
= =C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mo= de: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-= mode: t

Recent messages:
Undo! [10 times= ]
user-error: No further undo information [3 times]
nil

You can run the command =E2=80=98t= est-in-block=E2=80=99 with M-x t-bl RET

nil
<= div>
Making completion list...

Load-= path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rfc822 mml mml-sec
= password-cache epg epg-config mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util help-fns help-mode mail-prsvr mail-utils org-eleme= nt
org-rmail org-mhe org-irc org-info org-gnus gnus-util org-docv= iew
doc-view subr-x jka-compr image-mode dired cl-loaddefs pcase = cl-lib
org-bibtex bibtex org-bbdb org-w3m org org-macro org-footn= ote
org-pcomplete pcomplete org-list org-faces org-entities noutl= ine outline
easy-mmode org-version ob-emacs-lisp ob ob-tangle ob-= ref ob-lob ob-table
ob-exp org-src ob-keys ob-comint comint ansi-= color ring ob-core ob-eval
org-compat org-macs org-loaddefs forma= t-spec find-func cal-menu easymenu
calendar cal-loaddefs time-dat= e mule-util tooltip eldoc electric
uniquify ediff-hook vc-hooks l= isp-float-type mwheel dos-w32 ls-lisp
disp-table w32-win w32-vars= term/common-win tool-bar dnd fontset image
regexp-opt fringe tab= ulated-list newcomment elisp-mode lisp-mode
prog-mode register pa= ge menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock fo= nt-lock syntax facemenu font-core frame cl-generic cham
georgian = utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean = japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
euro= pean ethiopic indian cyrillic chinese charscript case-table epa-hook
<= div>jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
<= div>loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote w32notify w32 multi-tty
make-= network-process emacs)

Memory information:
((conses 16 142694 8689)
=C2=A0(symbols 56 26277 0)
= =C2=A0(miscs 48 67 99)
=C2=A0(strings 32 37651 5222)
= =C2=A0(string-bytes 1 1140795)
=C2=A0(vectors 16 19091)
=C2=A0(vector-slots 8 497556 4809)
=C2=A0(floats 8 209 56)
=
=C2=A0(intervals 56 350 31)
=C2=A0(buffers 976 19))

--0000000000001e642d05773fa908-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 02 11:17:52 2018 Received: (at control) by debbugs.gnu.org; 2 Oct 2018 15:17:52 +0000 Received: from localhost ([127.0.0.1]:34414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7MQq-0000Oc-1e for submit@debbugs.gnu.org; Tue, 02 Oct 2018 11:17:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53587) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7MQp-0000OQ-BY for control@debbugs.gnu.org; Tue, 02 Oct 2018 11:17:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7MQf-0002WQ-Or for control@debbugs.gnu.org; Tue, 02 Oct 2018 11:17:45 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7MQb-0002VR-OR for control@debbugs.gnu.org; Tue, 02 Oct 2018 11:17:38 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1g7MQb-0000CB-LK for control@debbugs.gnu.org; Tue, 02 Oct 2018 11:17:37 -0400 Subject: control message for bug 32906 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Tue, 02 Oct 2018 11:17:37 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) reassign 32906 org-mode From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 02 11:30:46 2018 Received: (at 32906) by debbugs.gnu.org; 2 Oct 2018 15:30:46 +0000 Received: from localhost ([127.0.0.1]:34424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7MdK-0001GL-1L for submit@debbugs.gnu.org; Tue, 02 Oct 2018 11:30:46 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:55701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7MdJ-0001BV-6Y for 32906@debbugs.gnu.org; Tue, 02 Oct 2018 11:30:45 -0400 Received: by mail-wm1-f46.google.com with SMTP id 206-v6so2706939wmb.5 for <32906@debbugs.gnu.org>; Tue, 02 Oct 2018 08:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=s0Kpj6SlmNZOIECuTp9yfYJbN+ilLG8hF/MhCllnGqw=; b=ZFzuQSl33XdIi6VGm2UKKTTMZZ3Or6cFFmFDSAvihvr+vrWOeiSX+FISvb5t+ZcS7B QFLrALnPecCApaXS5sBX/CJRopuxmo/ujEDDeiNJpYe8V4c1ixxiT4TK5DOwMby6ifxA lDLhZbgWGXlydxN9+zmOnAS8ZrhwxrF6Upw8fOhH2+Z6ydjv3MjyAEVD20X68iYO4zuU d57sR3K6e92ouh01/TT5/yM+vEAmrl64asQwagkCZ72d2lFszuyrXkGjz5bG9NgGiSQ9 H6/j18EN61SKabT+pFgaQ+y2NzfUzdXDfon3V1nJhB0nFPUo9JHXolc57mLkOV66rKkz IlXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=s0Kpj6SlmNZOIECuTp9yfYJbN+ilLG8hF/MhCllnGqw=; b=j9BkppNjox9l1F6LuGOIZcZdSU1pbLXlcc5nJCzUflDjXKCG35cKEPIOnbrel1EdQc r8EoUxQRe3jKdGhVwjpSKHjapfX918BLGVU/k9Vcd4cm8qrfSKDjn8p5UdI/WDJw9vEX 8el4xEUP/aSTvcLatebbRTWkGp/Eg1O5uhcFqljd9KwG8hD7VnTEhtyA+mRu4YMhWSRA /t2d6LCDzyucctrE/2PbfX6fUs2uATxxYu3A2GVB64Pd44O8Rh8lxUInP8vzusuK0LM/ RUIcEHu+eMyzY2gTIMvLA/UEwiyDO+6Tw1WyIrcAbV6NrAsdSAIO7GZrBsX+GJP+6v0k eMeQ== X-Gm-Message-State: ABuFfoiRRQ3NbNDI3FsK4MHHeDHEO4DBYM+YcSo0Iar1NoN92Oik/mMW YSmrRB4+Dmk+7Bi4dpbQ5nexfAX7 X-Google-Smtp-Source: ACcGV63ZnATUJttXYtS5vFyJrb38KRsvKHLqyoRlzQa35wc7s1z2TwfrYLJebk6XF4ZFY9xJKPL64g== X-Received: by 2002:a1c:8dc6:: with SMTP id p189-v6mr2138401wmd.3.1538494238747; Tue, 02 Oct 2018 08:30:38 -0700 (PDT) Received: from rpluim-ubuntu ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id v16-v6sm26363221wrw.12.2018.10.02.08.30.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Oct 2018 08:30:37 -0700 (PDT) From: Robert Pluim To: Eivind Otto Hjelle Subject: Re: bug#32906: org-in-src-block-p always returns nil References: X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Tue, 02 Oct 2018 17:30:35 +0200 In-Reply-To: (Eivind Otto Hjelle's message of "Tue, 2 Oct 2018 09:22:56 -0500") Message-ID: <87tvm4e57o.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32906 Cc: 32906@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 02 12:05:41 2018 Received: (at 32906) by debbugs.gnu.org; 2 Oct 2018 16:05:41 +0000 Received: from localhost ([127.0.0.1]:34434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7NB6-0003Y2-RJ for submit@debbugs.gnu.org; Tue, 02 Oct 2018 12:05:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7NB5-0003Xp-Ay for 32906@debbugs.gnu.org; Tue, 02 Oct 2018 12:05:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7NAw-0005l1-ON for 32906@debbugs.gnu.org; Tue, 02 Oct 2018 12:05:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7NAn-0005i1-Fc; Tue, 02 Oct 2018 12:05:25 -0400 Received: from [176.228.60.248] (port=4327 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g7NAl-0000cF-Si; Tue, 02 Oct 2018 12:05:21 -0400 Date: Tue, 02 Oct 2018 19:05:14 +0300 Message-Id: <83sh1o2v2d.fsf@gnu.org> From: Eli Zaretskii To: Eivind Otto Hjelle In-reply-to: (message from Eivind Otto Hjelle on Tue, 2 Oct 2018 09:22:56 -0500) Subject: Re: bug#32906: org-in-src-block-p always returns nil References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32906 Cc: 32906@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > 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? From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 02 13:39:53 2018 Received: (at 32906) by debbugs.gnu.org; 2 Oct 2018 17:39:53 +0000 Received: from localhost ([127.0.0.1]:34610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7OeH-0006cS-3i for submit@debbugs.gnu.org; Tue, 02 Oct 2018 13:39:53 -0400 Received: from mail-ot1-f48.google.com ([209.85.210.48]:37237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7OeF-0006cA-3P for 32906@debbugs.gnu.org; Tue, 02 Oct 2018 13:39:51 -0400 Received: by mail-ot1-f48.google.com with SMTP id o13-v6so2750450otl.4 for <32906@debbugs.gnu.org>; Tue, 02 Oct 2018 10:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9LzAPEJeni0LlZbLJzt8gZq169s9nJBQxfnK46hl+nI=; b=YWK0iwP+Z/Neb9EFfoPl0/4WDLhchyDixFrUx76oRbEnEVaCzXen47y0nCaJzWtiLL nb3Di7BOuKbI7QguQ6FzIsGwGropKskyqaUbaORtj7JVLHWTrGh0lHUOb2+Az0FkvFYm gmrqWEENuz/IDuMABbrw3gFhalw16nT7lBNXBYckWqKFuBSbgO62/gxucKYlr7nS8Zu0 qhjYK1UD0dnyBUIAP/uBl2NLk1poNNSg4/hvzUuZLNDsappLiVHF/ioa5VQYsLOBz5R1 nA9EtSNFBwWXcZ9cZkBjD+i7DKvUarxg4crclhmLHIbThOr7Y56W2FC0K5enSWgjBREC fGFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9LzAPEJeni0LlZbLJzt8gZq169s9nJBQxfnK46hl+nI=; b=R5D9KH/JfP2fTzT3gcueKiBbQrZ3kIwRmg9uXxciapkvoN6Syeav+9t97/0eMKYgYh tnxCdzK42eVeXvamOiPACBdAoO3c3k5j8tAh49tJAo76UDqQ/W+ybxTD2E+InDzWDwiQ LB3VbpZ9cWJa0iY8EPv25KpYqUggX63z1ZL3tGRA7KjQbgXMqYkihxzhPIEqTnupggWw tCtXbummmGvCMifxHoVDvbHwAVL22Dx73w9pBDCkLF63fOpx0x4981oCcD0SPQY8bKqm CXiyvnPOajMnrusEm4v57hD10jWlHb9oh0IBv5Mnx1bS/fFSkVv9R/FGp4eq6lzaSEkG XUEw== X-Gm-Message-State: ABuFfoitz7lRtsb23XqJnW4o54qJg9nQN8689zzeRnCOcelGrS23WI5L n6gBGXFcFKiIPSRFYHtNIcy8JO4fg1B6MQyih5s= X-Google-Smtp-Source: ACcGV63YJeqGMc4CdVNh/nKxtwdb5swm7J0wc1rxpCTQaDKUqmREnDOX/8EIaULWTRVLw+8iId78bxrjvYtU43au3zc= X-Received: by 2002:a9d:28cb:: with SMTP id s69mr8713147ota.112.1538501984949; Tue, 02 Oct 2018 10:39:44 -0700 (PDT) MIME-Version: 1.0 References: <87tvm4e57o.fsf@gmail.com> In-Reply-To: <87tvm4e57o.fsf@gmail.com> From: Eivind Otto Hjelle Date: Tue, 2 Oct 2018 12:39:34 -0500 Message-ID: Subject: Re: bug#32906: org-in-src-block-p always returns nil To: rpluim@gmail.com Content-Type: multipart/alternative; boundary="0000000000004c99fa057742685d" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32906 Cc: 32906@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --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-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 03 03:37:00 2018 Received: (at 32906-done) by debbugs.gnu.org; 3 Oct 2018 07:37:00 +0000 Received: from localhost ([127.0.0.1]:34864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7biO-00069U-Gf for submit@debbugs.gnu.org; Wed, 03 Oct 2018 03:37:00 -0400 Received: from mail-wr1-f44.google.com ([209.85.221.44]:42748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7biM-00069I-SX for 32906-done@debbugs.gnu.org; Wed, 03 Oct 2018 03:36:59 -0400 Received: by mail-wr1-f44.google.com with SMTP id g15-v6so2274063wru.9 for <32906-done@debbugs.gnu.org>; Wed, 03 Oct 2018 00:36:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version; bh=l35jYrIYhWRdDMKj8InT5tVtwXkiV8f3JgKU7uM1Ack=; b=gcv3VB4qSIPs1JsRebCGjSLtueaiFpWrt7Vk1BfEVAEye7kV50S8uCKstdFHIBrceJ iC5K3zH0i5isZr3l7z9OMvvUAwFdip1xaMV1dTgiJxrI3bpan3++aLb7JSVokc5kDPFr Dh3W2aBi3UVlCieEDq7xF52gp3TtA+yCh/he+lYyBlphQd96jRBhb+9qYTnIXCbtoPvU eI5RI0FomSS9LbepoYf0LPGVjDKhjgLjPrFPlHStvRRzE0yWkdAuJBU8dpPDDQZJSBL6 bHdHuaH3z2MUk6kPAiAadV0OnuURM+80xFcXLC7KRTBfd/AHikEFLkwV2HKdLA5f2eY+ D6pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version; bh=l35jYrIYhWRdDMKj8InT5tVtwXkiV8f3JgKU7uM1Ack=; b=aKDwDB5uyBbp249KOFv6+Nz4jkDX5NF9WxgsYHMsMp2FR04EOOF6rUMmDZG1B6XLu9 7q525CVMlSKlWRH08R2ytUUSqYSMHGuZe+zENJtQdEDNyWJPPFvLB7Gr46HwbwsAgrHD RSJ9NhGTsGOwbFxA2ZFBkCCRzJaIag8LUuK6AwYys5cPtL/ckwi1uJ0LQ6r5bBVtzc49 8ifnzxssGkubEZVLQw6zBaDdAoegQ4wCVlSTw9famURrL1FMnP+gTgrJOCSY1klRrgDO CmBCPQyYbHrvQnlyaDIFYtEi/YH6Dv9pBCOsOvTdVZ52E50P2d/6M310ZcvrtaEOTovw 5iig== X-Gm-Message-State: ABuFfoifhTq2/ZVqnfwPyOTeMXhBeskPr5SW4v1GJiha0smCC1pokeNb s8tOLZmHVxZ6QUO2lAUN58ZochO/ X-Google-Smtp-Source: ACcGV62prU4+8qGnyRRsxncZsuFmLV0qLo9lqFuGbkbSQ3LUKNbyvoGxdkjvJS1RYmJLaqFNc2FQ1g== X-Received: by 2002:adf:a352:: with SMTP id d18-v6mr216512wrb.31.1538552212714; Wed, 03 Oct 2018 00:36:52 -0700 (PDT) Received: from rpluim-ubuntu ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id a18sm346925wrx.55.2018.10.03.00.36.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Oct 2018 00:36:51 -0700 (PDT) From: Robert Pluim To: Eivind Otto Hjelle Subject: Re: bug#32906: org-in-src-block-p always returns nil References: <87tvm4e57o.fsf@gmail.com> Date: Wed, 03 Oct 2018 09:36:50 +0200 In-Reply-To: (Eivind Otto Hjelle's message of "Tue, 2 Oct 2018 12:39:34 -0500") Message-ID: <871s974h2l.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32906-done Cc: 32906-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eivind Otto Hjelle writes: > 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! Thanks for checking. Closing. Regards Robert From unknown Thu Sep 11 19:19:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 31 Oct 2018 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator