From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eivind Otto Hjelle Newsgroups: gmane.emacs.bugs Subject: bug#32906: org-in-src-block-p always returns nil Date: Tue, 2 Oct 2018 09:22:56 -0500 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001e642d05773fa908" X-Trace: blaine.gmane.org 1538493315 19255 195.159.176.226 (2 Oct 2018 15:15:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 2 Oct 2018 15:15:15 +0000 (UTC) To: 32906@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 02 17:15:11 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7MOD-0004t0-Qw for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Oct 2018 17:15:10 +0200 Original-Received: from localhost ([::1]:44221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7MQK-0006OW-Aq for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Oct 2018 11:17:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7MQ4-0006N2-QT for bug-gnu-emacs@gnu.org; Tue, 02 Oct 2018 11:17:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7MQ2-0002Ad-Hz for bug-gnu-emacs@gnu.org; Tue, 02 Oct 2018 11:17:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58384) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7MQ2-0002AO-DH for bug-gnu-emacs@gnu.org; Tue, 02 Oct 2018 11:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g7MQ2-0000Mg-3d for bug-gnu-emacs@gnu.org; Tue, 02 Oct 2018 11:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eivind Otto Hjelle Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Oct 2018 15:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15384933971356 (code B ref -1); Tue, 02 Oct 2018 15:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Oct 2018 15:16:37 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:150905 Archived-At: --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--