all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#32906: org-in-src-block-p always returns nil
@ 2018-10-02 14:22 Eivind Otto Hjelle
  2018-10-02 15:30 ` Robert Pluim
  2018-10-02 16:05 ` Eli Zaretskii
  0 siblings, 2 replies; 5+ messages in thread
From: Eivind Otto Hjelle @ 2018-10-02 14:22 UTC (permalink / raw)
  To: 32906

[-- Attachment #1: Type: text/plain, Size: 3836 bytes --]

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))

[-- Attachment #2: Type: text/html, Size: 5186 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#32906: org-in-src-block-p always returns nil
  2018-10-02 14:22 bug#32906: org-in-src-block-p always returns nil Eivind Otto Hjelle
@ 2018-10-02 15:30 ` Robert Pluim
  2018-10-02 17:39   ` Eivind Otto Hjelle
  2018-10-02 16:05 ` Eli Zaretskii
  1 sibling, 1 reply; 5+ messages in thread
From: Robert Pluim @ 2018-10-02 15:30 UTC (permalink / raw)
  To: Eivind Otto Hjelle; +Cc: 32906

Eivind Otto Hjelle <eohjelle@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#32906: org-in-src-block-p always returns nil
  2018-10-02 14:22 bug#32906: org-in-src-block-p always returns nil Eivind Otto Hjelle
  2018-10-02 15:30 ` Robert Pluim
@ 2018-10-02 16:05 ` Eli Zaretskii
  1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2018-10-02 16:05 UTC (permalink / raw)
  To: Eivind Otto Hjelle; +Cc: 32906

> From: Eivind Otto Hjelle <eohjelle@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?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#32906: org-in-src-block-p always returns nil
  2018-10-02 15:30 ` Robert Pluim
@ 2018-10-02 17:39   ` Eivind Otto Hjelle
  2018-10-03  7:36     ` Robert Pluim
  0 siblings, 1 reply; 5+ messages in thread
From: Eivind Otto Hjelle @ 2018-10-02 17:39 UTC (permalink / raw)
  To: rpluim; +Cc: 32906

[-- Attachment #1: Type: text/plain, Size: 863 bytes --]

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@gmail.com> wrote:

> Eivind Otto Hjelle <eohjelle@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
>

[-- Attachment #2: Type: text/html, Size: 1337 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#32906: org-in-src-block-p always returns nil
  2018-10-02 17:39   ` Eivind Otto Hjelle
@ 2018-10-03  7:36     ` Robert Pluim
  0 siblings, 0 replies; 5+ messages in thread
From: Robert Pluim @ 2018-10-03  7:36 UTC (permalink / raw)
  To: Eivind Otto Hjelle; +Cc: 32906-done

Eivind Otto Hjelle <eohjelle@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-03  7:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-02 14:22 bug#32906: org-in-src-block-p always returns nil Eivind Otto Hjelle
2018-10-02 15:30 ` Robert Pluim
2018-10-02 17:39   ` Eivind Otto Hjelle
2018-10-03  7:36     ` Robert Pluim
2018-10-02 16:05 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.