GNU bug report logs -
#32906
org-in-src-block-p always returns nil
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32906 in the body.
You can then email your comments to 32906 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32906
; Package
emacs
.
(Tue, 02 Oct 2018 15:17:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Eivind Otto Hjelle <eohjelle <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 02 Oct 2018 15:17:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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=/tmp/emacs --without-imagemagick --without-dbus
--with-modules 'CFLAGS=-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 ‘test-in-block’ 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))
[Message part 2 (text/html, inline)]
bug reassigned from package 'emacs' to 'org-mode'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 02 Oct 2018 15:18:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
emacs-orgmode <at> gnu.org
:
bug#32906
; Package
org-mode
.
(Tue, 02 Oct 2018 15:31:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 32906 <at> debbugs.gnu.org (full text, mbox):
Eivind Otto Hjelle <eohjelle <at> gmail.com> 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
Information forwarded
to
emacs-orgmode <at> gnu.org
:
bug#32906
; Package
org-mode
.
(Tue, 02 Oct 2018 16:06:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 32906 <at> debbugs.gnu.org (full text, mbox):
> From: Eivind Otto Hjelle <eohjelle <at> 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?
Information forwarded
to
emacs-orgmode <at> gnu.org
:
bug#32906
; Package
org-mode
.
(Tue, 02 Oct 2018 17:40:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 32906 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 <rpluim <at> gmail.com> wrote:
> Eivind Otto Hjelle <eohjelle <at> gmail.com> 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
>
[Message part 2 (text/html, inline)]
Reply sent
to
Robert Pluim <rpluim <at> gmail.com>
:
You have taken responsibility.
(Wed, 03 Oct 2018 07:37:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Eivind Otto Hjelle <eohjelle <at> gmail.com>
:
bug acknowledged by developer.
(Wed, 03 Oct 2018 07:37:01 GMT)
Full text and
rfc822 format available.
Message #21 received at 32906-done <at> debbugs.gnu.org (full text, mbox):
Eivind Otto Hjelle <eohjelle <at> gmail.com> 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
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 31 Oct 2018 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 317 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.