emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thomas Fuchs <tfox@gmx.de>
To: emacs-orgmode@gnu.org
Subject: Patch for problem with xemacs
Date: Mon, 8 Dec 2008 22:47:36 +0100	[thread overview]
Message-ID: <18749.38392.515694.572285@gargle.gargle.HOWL> (raw)

[-- Attachment #1: message body text --]
[-- Type: text/plain, Size: 312 bytes --]


Hi there!

The function org-substring-no-properties is called in org-remember.el
with one argument and defined with one plus two optional arguments. In
case of xemacs the function delegates to substring which requires 
a non-optional second argument "from".

The attached patch handles this.

Greetings
Thomas


[-- Attachment #2: patch --]
[-- Type: application/octet-stream, Size: 466 bytes --]

diff --git a/lisp/org-compat.el b/lisp/org-compat.el
index 08f66fc..197fcbb 100644
--- a/lisp/org-compat.el
+++ b/lisp/org-compat.el
@@ -284,7 +284,7 @@ that can be added."
 
 (defun org-substring-no-properties (string &optional from to)
   (if (featurep 'xemacs)
-      (org-no-properties (substring string from to))
+      (org-no-properties (substring string (if (eq from nil) 0 from) to))
     (substring-no-properties string from to)))
 
 (provide 'org-compat)

[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

             reply	other threads:[~2008-12-08 20:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-08 21:47 Thomas Fuchs [this message]
2008-12-08 20:58 ` Patch for problem with xemacs Carsten Dominik

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=18749.38392.515694.572285@gargle.gargle.HOWL \
    --to=tfox@gmx.de \
    --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).