emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lawrence Bottorff <borgauf@gmail.com>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Bizarre C-c ' error
Date: Wed, 21 Oct 2015 15:25:37 +0000	[thread overview]
Message-ID: <CAFAhFSUxOnENnijyXvEWsRFifFpFJt7yn9PzpLhNUgCQu027vQ@mail.gmail.com> (raw)

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

I found this bizarre thing while doing some babel coding. I start by
putting this template together

#+name: leibniz_3
#+begin_src lisp :session :exports code :results silent

#+end_src

Then from this page
<ftp://ftp.cs.washington.edu/homes/tanimoto/ai/LEIBNIZ.CL> I copy this code
(some 40 lines down)

. . .
  (push (make-rule :goal (first r)
                   :pattern (second r)
                   :action (third r)
                   :name (fourth r))
        *rules*) )

into a C-c ' buffer. But when I return to my org buffer (with an additional
C-c '), it has done this:

#+name: leibtest
#+begin_src lisp :session :exports code :results silent
  (push (make-rule :goal (first r)
                   :pattern (second r)
                   :action (third r)
                   :name (fourth r))
        ,*rules*) )
#+end_src

Can you spot the difference? Subtle bug as it is, the code now has a comma
thrown in on the last line. At first I thought this was some copying crud
-- for example, if I simply highlight my code directly off this email (in
Chrome/gmail) and try to XWinows-paste (middle wheel mouse click) it in, it
throws in weird white-space crud -- but no, this comma add thing is only
from doing a C-c ' round trip! And no, it's not an issue of how I put in
the code: copy or type -- into the original org buffer or into the C-c '
buffer. Again, just a C-c ' round trip throws in this comma. Odd
coincidence, but this might have been legitimate CL code, except the list
needs a backquote too. This has been a hair-pulling, all-time-top-ten bug,
to be sure. And diff shows only this problem on the whole LEIBNIZ.CL file.
Any ideas what's causing this?

Lb

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

             reply	other threads:[~2015-10-21 15:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-21 15:25 Lawrence Bottorff [this message]
2015-10-22  1:06 ` Bizarre C-c ' error John Kitchin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFAhFSUxOnENnijyXvEWsRFifFpFJt7yn9PzpLhNUgCQu027vQ@mail.gmail.com \
    --to=borgauf@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).