* Invalid search bound (wrong side of point) using Remember
@ 2007-11-16 14:14 Graham Smith
2007-11-16 15:28 ` Bastien
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Graham Smith @ 2007-11-16 14:14 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 282 bytes --]
I have just set up Remember with Org mode (without the template set up),
when I use C-c C-c to save the entry, it gets saved to notes.org as it
should, but I also get an error:
Invalid search bound (wrong side of point)
Can some one explain what this means.
Many thanks,
Graham
[-- Attachment #1.2: Type: text/html, Size: 350 bytes --]
[-- Attachment #2: 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Invalid search bound (wrong side of point) using Remember
2007-11-16 14:14 Invalid search bound (wrong side of point) using Remember Graham Smith
@ 2007-11-16 15:28 ` Bastien
2007-11-16 15:46 ` Graham Smith
2007-11-16 15:37 ` Daniel Clemente
2007-11-16 18:24 ` Andrew J. Korty
2 siblings, 1 reply; 14+ messages in thread
From: Bastien @ 2007-11-16 15:28 UTC (permalink / raw)
To: emacs-orgmode
Hi Graham,
"Graham Smith" <myotisone@gmail.com> writes:
> I have just set up Remember with Org mode (without the template set up),
> when I use C-c C-c to save the entry, it gets saved to notes.org as it
> should, but I also get an error:
>
> Invalid search bound (wrong side of point)
>
> Can some one explain what this means.
This is hard to guess. Can you provide more information?
- version numbers of Org/Remember/Emacs
- relevant parts of your Org/Remember setup
- a backtrace
To get a backtrace, turn on debugging in Emacs:
(setq debug-on-error t)
Thanks,
--
Bastien
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Invalid search bound (wrong side of point) using Remember
2007-11-16 14:14 Invalid search bound (wrong side of point) using Remember Graham Smith
2007-11-16 15:28 ` Bastien
@ 2007-11-16 15:37 ` Daniel Clemente
2007-11-16 15:57 ` Bastien
2007-11-16 18:24 ` Andrew J. Korty
2 siblings, 1 reply; 14+ messages in thread
From: Daniel Clemente @ 2007-11-16 15:37 UTC (permalink / raw)
To: Graham Smith; +Cc: emacs-orgmode
Hi,
I provide more information, since I'm always getting this error.
** My configuration
GNU Emacs 23.0.50.1 (i686-pc-linux-gnu, multi-tty) of 2007-09-05
org 5.11
(add-to-list 'load-path "~/.emacs.d/remember/")
(require 'remember)
(setq org-directory "~/org")
(setq org-default-notes-file (concat org-directory "/malgrave.org"))
(setq remember-annotation-functions '(org-remember-annotation))
(setq remember-handler-functions '(org-remember-handler))
(add-hook 'remember-mode-hook 'org-remember-apply-template)
** Producing the problem
M-x remember
Write something
C-c
** Backtrace
Debugger entered--Lisp error: (error "Invalid search bound (wrong side
of point)")
re-search-forward("^[ ]+" #<marker at 17989 in malgrave.org> t)
(while (re-search-forward "^[ ]+" end t) (goto-char (match-end 0))
(setq col (current-column)) (if (< diff 0) (replace-match ""))
(indent-to (+ diff col)))
(if (save-excursion (end-of-line 1) (re-search-forward prohibit end
t)) nil (while (re-search-forward "^[ ]+" end t) (goto-char ...)
(setq col ...) (if ... ...) (indent-to ...)))
(unless (save-excursion (end-of-line 1) (re-search-forward prohibit
end t)) (while (re-search-forward "^[ ]+" end t) (goto-char ...)
(setq col ...) (if ... ...) (indent-to ...)))
(let ((end ...) (prohibit ...) col) (unless (save-excursion ... ...)
(while ... ... ... ... ...)) (move-marker end nil))
(save-excursion (let (... ... col) (unless ... ...) (move-marker end nil)))
org-fixup-indentation(1)
(if org-adapt-indentation (org-fixup-indentation diff))
(let* ((level ...) (down-head ...) (diff ...)) (replace-match
down-head nil t) (and org-auto-align-tags (org-set-tags nil t)) (if
org-adapt-indentation (org-fixup-indentation diff)))
org-demote()
funcall(org-demote)
(if (and (re-search-forward ... nil t) (< ... end)) (funcall fun))
(save-excursion (setq end (copy-marker end)) (goto-char beg) (if
(and ... ...) (funcall fun)) (while (and ... ...) (funcall fun)))
(let ((org-ignore-region t)) (save-excursion (setq end ...)
(goto-char beg) (if ... ...) (while ... ...)))
org-map-region(org-demote 17758 17985)
(while (not (= shift 0)) (org-map-region func (point-min)
(point-max)) (setq shift (+ delta shift)))
(save-restriction (narrow-to-region beg end) (while (not ...)
(org-map-region func ... ...) (setq shift ...)) (goto-char
(point-min)))
(if (= shift 0) nil (save-restriction (narrow-to-region beg end)
(while ... ... ...) (goto-char ...)))
(unless (= shift 0) (save-restriction (narrow-to-region beg end)
(while ... ... ...) (goto-char ...)))
(let* ((txt ...) (^re ...) (re ...) (^re_ ...) (old-level ...)
(force-level ...) (previous-level ...) (next-level ...) (new-level
...) (shift ...) (shift1 shift) (delta ...) (func ...)
(org-odd-levels-only nil) beg end) (if force-level (delete-region ...
...)) (beginning-of-line 1) (setq beg (point)) (insert txt) (unless
(string-match "\n[ ]*\\'" txt) (insert "\n")) (setq end (point))
(goto-char beg) (unless (= shift 0) (save-restriction ... ... ...))
(when (interactive-p) (message "Clipboard pasted as level %d subtree"
new-level)) (if (and kill-ring ... org-subtree-clip-folded)
(hide-subtree)))
org-paste-subtree(2 #("* Fri Nov 16 16:27:05 2007 (provo)\n provo\n
\n [[http://mail.google.com/mail/h/4frk72uipcox/%3Fv%3Dc&s%3Dl&l%3Dorgmode&th%3D1164913862243a78][Google
Mail - Orgmode Invalid search bound (wrong side of point) using
Remember]]\n " 0 28 nil 28 33 (fontified t) 33 37 nil 37 42
(fontified t) 42 48 nil 48 50 (face org-link mouse-face highlight
keymap (keymap ... ... ...) invisible org-link help-echo "LINK:
http://mail.google.com/mail/h/4frk72uipcox/%3Fv%3Dc&s%3Dl&l%3Dorgmode&th%3D1164913862243a78"
rear-nonsticky (mouse-face highlight keymap invisible intangible
help-echo org-linked-text) fontified t) 50 141 (invisible org-link
face org-link keymap (keymap ... ... ...) mouse-face highlight
help-echo "LINK:
http://mail.google.com/mail/h/4frk72uipcox/%3Fv%3Dc&s%3Dl&l%3Dorgmode&th%3D1164913862243a78"
rear-nonsticky (mouse-face highlight keymap invisible intangible
help-echo org-linked-text) fontified t) 141 143 (face org-link
mouse-face highlight keymap (keymap ... ... ...) invisible org-link
help-echo "LINK:
http://mail.google.com/mail/h/4frk72uipcox/%3Fv%3Dc&s%3Dl&l%3Dorgmode&th%3D1164913862243a78"
rear-nonsticky (mouse-face highlight keymap invisible intangible
help-echo org-linked-text) fontified t) 143 222 (face org-link
mouse-face highlight keymap (keymap ... ... ...) help-echo "LINK:
http://mail.google.com/mail/h/4frk72uipcox/%3Fv%3Dc&s%3Dl&l%3Dorgmode&th%3D1164913862243a78"
rear-nonsticky (mouse-face highlight keymap invisible intangible
help-echo org-linked-text) fontified t) 222 224 (face org-link
mouse-face highlight keymap (keymap ... ... ...) invisible org-link
help-echo "LINK:
http://mail.google.com/mail/h/4frk72uipcox/%3Fv%3Dc&s%3Dl&l%3Dorgmode&th%3D1164913862243a78"
rear-nonsticky (mouse-face highlight keymap invisible intangible
help-echo org-linked-text) fontified t) 224 227 nil))
(save-restriction (widen) (goto-char (point-max)) (if (not ...)
(newline)) (org-paste-subtree (org-get-legal-level 1 1) txt))
(cond ((org-on-heading-p t) (org-back-to-heading t) (setq level ...)
(cond ... ... ... ...)) ((and ... ...) (save-restriction ... ... ...
...)) ((and ... reversed) (save-restriction ... ... ... ... ...)) (t
(org-paste-subtree ... txt)))
(save-restriction (widen) (and (goto-char ...) (not ...) (insert
"\n* " ... "\n")) (setq reversed (org-notes-order-reversed-p)) (when
(and heading ... ...) (goto-char ...) (if ... ... ...)) (if fastp
(setq spos org-goto-start-pos exitcmd ...) (setq spos ... exitcmd ...
spos ...)) (if (not spos) (throw ... nil)) (goto-char spos) (cond (...
... ... ...) (... ...) (... ...) (t ...)) (when
remember-save-after-remembering (save-buffer) (if ... ...)))
(save-excursion (save-restriction (widen) (and ... ... ...) (setq
reversed ...) (when ... ... ...) (if fastp ... ...) (if ... ...)
(goto-char spos) (cond ... ... ... ...) (when
remember-save-after-remembering ... ...)))
(save-current-buffer (set-buffer (or visiting ...)) (unless
(org-mode-p) (error "Target files for remember notes must be in
Org-mode")) (save-excursion (save-restriction ... ... ... ... ... ...
... ... ...)))
(with-current-buffer (or visiting (get-file-buffer file)) (unless
(org-mode-p) (error "Target files for remember notes must be in
Org-mode")) (save-excursion (save-restriction ... ... ... ... ... ...
... ... ...)))
(let* ((txt ...) (fastp ...) (file ...) (heading
org-remember-default-headline) (visiting ...) (org-startup-folded nil)
(org-startup-align-all-tables nil) (org-goto-start-pos 1) spos exitcmd
level indent reversed) (if (and ... org-remember-previous-location)
(setq file ... heading ...)) (setq current-prefix-arg nil) (let* (...
first) (setq first ... lines ...) (if ... ... ...) (if ... ...) (setq
txt ...)) (if (not visiting) (find-file-noselect file))
(with-current-buffer (or visiting ...) (unless ... ...)
(save-excursion ...)))
(catch (quote quit) (let* (... ... ... ... ... ... ... ... spos
exitcmd level indent reversed) (if ... ...) (setq current-prefix-arg
nil) (let* ... ... ... ... ...) (if ... ...) (with-current-buffer ...
... ...)))
org-remember-handler()
run-hook-with-args-until-success(org-remember-handler)
(if remember-all-handler-functions (run-hooks (quote
remember-handler-functions)) (run-hook-with-args-until-success (quote
remember-handler-functions)))
(save-restriction (narrow-to-region b e) (if
remember-all-handler-functions (run-hooks ...)
(run-hook-with-args-until-success ...)) (remember-destroy))
(let ((b ...) (e ...)) (save-restriction (narrow-to-region b e) (if
remember-all-handler-functions ... ...) (remember-destroy)))
remember-region(1 185)
remember-buffer()
funcall(remember-buffer)
(cond ((or org-clock-overlays org-occur-highlights
org-latex-fragment-image-overlays) (org-remove-clock-overlays)
(org-remove-occur-highlights)
(org-remove-latex-fragment-image-overlays) (message "Temporary
highlights/overlays removed from current buffer")) ((and ... ...)
(funcall org-finish-function)) ((org-at-property-p)
(call-interactively ...)) ((org-on-target-p) (call-interactively ...))
((org-on-heading-p) (call-interactively ...)) ((org-at-table\.el-p)
(require ...) (beginning-of-line 1) (re-search-forward "|" ...)
(call-interactively ...)) ((org-at-table-p)
(org-table-maybe-eval-formula) (if arg ... ...) (call-interactively
...)) ((org-at-item-checkbox-p) (call-interactively ...))
((org-at-item-p) (call-interactively ...)) ((save-excursion ... ...)
(beginning-of-line 1) (org-update-dblock)) ((save-excursion ... ...)
(cond ... ...)) (t (error "C-c C-c can do nothing useful at this
location.")))
(let ((org-enable-table-editor t)) (cond (... ... ... ... ...) (...
...) (... ...) (... ...) (... ...) (... ... ... ... ...) (... ... ...
...) (... ...) (... ...) (... ... ...) (... ...) (t ...)))
org-ctrl-c-ctrl-c(nil)
call-interactively(org-ctrl-c-ctrl-c)
recursive-edit()
byte-code("Æ\x10 @Ç=!\0ÈÉÊ\"ËÉ!\x1aA@)¢Ì=!\0ÈÍÊ\"Î\v!Ï Ð !\fc\0Ñed\"
VW\0ebÒ
¥y`\x1e^[dbÒ
¥
Zy\x0e^[`|)ÓcebÔÕÖ \"× ÔØ!ÙÊ\x1e\x1c\x1e\x1dÔØ!Ú +Ù" [unread-command-char
debugger-args x debugger-buffer noninteractive
debugger-batch-max-lines -1 debug backtrace-debug 4 t backtrace-frame
lambda 5 pop-to-buffer debugger-mode debugger-setup-buffer count-lines
2 "...\n" message "%s" buffer-string kill-emacs "" nil recursive-edit
middlestart buffer-read-only standard-output] 4)
** end
Thanks,
Daniel
2007/11/16, Graham Smith <myotisone@gmail.com>:
> I have just set up Remember with Org mode (without the template set up),
> when I use C-c C-c to save the entry, it gets saved to notes.org as it
> should, but I also get an error:
>
> Invalid search bound (wrong side of point)
>
> Can some one explain what this means.
>
> Many thanks,
>
> Graham
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Invalid search bound (wrong side of point) using Remember
2007-11-16 15:28 ` Bastien
@ 2007-11-16 15:46 ` Graham Smith
2007-11-16 16:05 ` Bastien
0 siblings, 1 reply; 14+ messages in thread
From: Graham Smith @ 2007-11-16 15:46 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1221 bytes --]
Bastien,
Since sending this message, I have set up the templates script (as in the
OrgMode 5.13e manual (but running 5.13i) in the .emacs file, and I no longer
get the error.
I can try and recreate the error out of interest, but I am happy that it
seem fixed, and that I have grasped how the templates work.
Graham
On 16/11/2007, Bastien <bzg@altern.org> wrote:
>
> Hi Graham,
>
> "Graham Smith" <myotisone@gmail.com> writes:
>
> > I have just set up Remember with Org mode (without the template set up),
> > when I use C-c C-c to save the entry, it gets saved to notes.org as it
> > should, but I also get an error:
> >
> > Invalid search bound (wrong side of point)
> >
> > Can some one explain what this means.
>
> This is hard to guess. Can you provide more information?
>
> - version numbers of Org/Remember/Emacs
> - relevant parts of your Org/Remember setup
> - a backtrace
>
> To get a backtrace, turn on debugging in Emacs:
>
> (setq debug-on-error t)
>
> Thanks,
>
> --
> Bastien
>
>
> _______________________________________________
> 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
>
[-- Attachment #1.2: Type: text/html, Size: 1808 bytes --]
[-- Attachment #2: 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Invalid search bound (wrong side of point) using Remember
2007-11-16 15:37 ` Daniel Clemente
@ 2007-11-16 15:57 ` Bastien
2007-11-16 17:18 ` Daniel Clemente
0 siblings, 1 reply; 14+ messages in thread
From: Bastien @ 2007-11-16 15:57 UTC (permalink / raw)
To: emacs-orgmode
"Daniel Clemente" <n142857@gmail.com> writes:
> I provide more information, since I'm always getting this error.
Thanks for the information. I tried to dig this a bit, and found out
that `org-remember-handler' was confused by the target file not being
in org-mode, even if it is an org file. Not sure this is relevant here
though.
> ** My configuration
> GNU Emacs 23.0.50.1 (i686-pc-linux-gnu, multi-tty) of 2007-09-05
>
> org 5.11
Would you mind testing if this error occurs in latest Org?
Thanks for your help,
--
Bastien
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Invalid search bound (wrong side of point) using Remember
2007-11-16 15:46 ` Graham Smith
@ 2007-11-16 16:05 ` Bastien
2007-11-16 16:10 ` Graham Smith
0 siblings, 1 reply; 14+ messages in thread
From: Bastien @ 2007-11-16 16:05 UTC (permalink / raw)
To: emacs-orgmode
"Graham Smith" <myotisone@gmail.com> writes:
> Since sending this message, I have set up the templates script (as in
> the OrgMode 5.13e manual (but running 5.13i) in the .emacs file, and I
> no longer get the error.
Good! Hopefully Carsten will be able to digg this further, because
people might want to use M-x remember without defining templates.
> I can try and recreate the error out of interest, but I am happy that
> it seem fixed, and that I have grasped how the templates work.
Since Daniel sent a backtrace, don't take the hassle, I'm sure the
solution is not that far.
Thanks for your help,
--
Bastien
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Invalid search bound (wrong side of point) using Remember
2007-11-16 16:05 ` Bastien
@ 2007-11-16 16:10 ` Graham Smith
2007-11-16 16:25 ` Bastien
0 siblings, 1 reply; 14+ messages in thread
From: Graham Smith @ 2007-11-16 16:10 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1283 bytes --]
Bastien,
Thats fine with me :-)
I wonder if it could be related to the line in the Remember set up that has
(add hook 'remember -mode-hook 'org-remember-apply-template)
Which I just copied straight from the manual, I don't actually understand
what this all does, but if this is calling a template and none are defined,
could this throw up an error?
Graham
On 16/11/2007, Bastien <bzg@altern.org> wrote:
>
> "Graham Smith" <myotisone@gmail.com> writes:
>
> > Since sending this message, I have set up the templates script (as in
> > the OrgMode 5.13e manual (but running 5.13i) in the .emacs file, and I
> > no longer get the error.
>
> Good! Hopefully Carsten will be able to digg this further, because
> people might want to use M-x remember without defining templates.
>
> > I can try and recreate the error out of interest, but I am happy that
> > it seem fixed, and that I have grasped how the templates work.
>
> Since Daniel sent a backtrace, don't take the hassle, I'm sure the
> solution is not that far.
>
> Thanks for your help,
>
> --
> Bastien
>
>
> _______________________________________________
> 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
>
[-- Attachment #1.2: Type: text/html, Size: 1835 bytes --]
[-- Attachment #2: 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Invalid search bound (wrong side of point) using Remember
2007-11-16 16:10 ` Graham Smith
@ 2007-11-16 16:25 ` Bastien
2007-11-16 16:35 ` Graham Smith
0 siblings, 1 reply; 14+ messages in thread
From: Bastien @ 2007-11-16 16:25 UTC (permalink / raw)
To: emacs-orgmode
"Graham Smith" <myotisone@gmail.com> writes:
> I wonder if it could be related to the line in the Remember set up
> that has
>
> (add hook 'remember -mode-hook 'org-remember-apply-template)
... Please copy correct excerpts of code, this could be confusing for other
users: (add-hook 'remember-mode-hook 'org-remember-apply-template)
And no, I don't think the error comes from this.
`org-remember-apply-template' is a function that prepares the remember
buffer *before* the user write into it. Your problem occurs when you
try to send the remember annotation through `org-remember-handler'
(which is called by C-c C-c in the remember buffer.)
Thanks for your help!
--
Bastien
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Invalid search bound (wrong side of point) using Remember
2007-11-16 16:25 ` Bastien
@ 2007-11-16 16:35 ` Graham Smith
0 siblings, 0 replies; 14+ messages in thread
From: Graham Smith @ 2007-11-16 16:35 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1041 bytes --]
Bastien,
Ah OK, and sorry about the code.
Graham
On 16/11/2007, Bastien <bzg@altern.org> wrote:
>
> "Graham Smith" <myotisone@gmail.com> writes:
>
> > I wonder if it could be related to the line in the Remember set up
> > that has
> >
> > (add hook 'remember -mode-hook 'org-remember-apply-template)
>
> ... Please copy correct excerpts of code, this could be confusing for
> other
> users: (add-hook 'remember-mode-hook 'org-remember-apply-template)
>
> And no, I don't think the error comes from this.
>
> `org-remember-apply-template' is a function that prepares the remember
> buffer *before* the user write into it. Your problem occurs when you
> try to send the remember annotation through `org-remember-handler'
> (which is called by C-c C-c in the remember buffer.)
>
> Thanks for your help!
>
> --
> Bastien
>
>
> _______________________________________________
> 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
>
[-- Attachment #1.2: Type: text/html, Size: 1579 bytes --]
[-- Attachment #2: 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Invalid search bound (wrong side of point) using Remember
2007-11-16 15:57 ` Bastien
@ 2007-11-16 17:18 ` Daniel Clemente
2007-11-16 17:26 ` Daniel Clemente
2007-11-16 17:27 ` Bastien
0 siblings, 2 replies; 14+ messages in thread
From: Daniel Clemente @ 2007-11-16 17:18 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
>
> Thanks for the information. I tried to dig this a bit, and found out
> that `org-remember-handler' was confused by the target file not being
> in org-mode, even if it is an org file. Not sure this is relevant here
> though.
>
What do you mean with „not being in org-mode"?
The error appears even if the file is open at that time. The file
I'm trying to use is even part of the agenda.
> > ** My configuration
> > GNU Emacs 23.0.50.1 (i686-pc-linux-gnu, multi-tty) of 2007-09-05
> >
> > org 5.11
>
> Would you mind testing if this error occurs in latest Org?
>
It appears also with 5.13i, with the same backtrace.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Invalid search bound (wrong side of point) using Remember
2007-11-16 17:18 ` Daniel Clemente
@ 2007-11-16 17:26 ` Daniel Clemente
2007-11-16 17:27 ` Bastien
1 sibling, 0 replies; 14+ messages in thread
From: Daniel Clemente @ 2007-11-16 17:26 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
It also happens if the target file doesn't exist.
When the file exists, the result is that the old content of the
file is deleted and the note appears anyway at the top. Luckily, the
changes are not written to disk, and you can close the file and open
with to see the old contents.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Invalid search bound (wrong side of point) using Remember
2007-11-16 17:18 ` Daniel Clemente
2007-11-16 17:26 ` Daniel Clemente
@ 2007-11-16 17:27 ` Bastien
1 sibling, 0 replies; 14+ messages in thread
From: Bastien @ 2007-11-16 17:27 UTC (permalink / raw)
To: emacs-orgmode
"Daniel Clemente" <n142857@gmail.com> writes:
>> Thanks for the information. I tried to dig this a bit, and found out
>> that `org-remember-handler' was confused by the target file not being
>> in org-mode, even if it is an org file. Not sure this is relevant here
>> though.
>>
> What do you mean with „not being in org-mode"?
> The error appears even if the file is open at that time. The file
> I'm trying to use is even part of the agenda.
Sorry I was not clear.
I mean that `org-remember-handler' checks whether the target file is in
a buffer with org-mode as its major-mode and that `org-remember-handler'
this check seems wrong to me.
But again, this might not be related to the error Graham reported.
>> Would you mind testing if this error occurs in latest Org?
>>
> It appears also with 5.13i, with the same backtrace.
Thanks. I'll have a look later, or Carsten will fix this in the
meanwhile.
--
Bastien
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Invalid search bound (wrong side of point) using Remember
2007-11-16 14:14 Invalid search bound (wrong side of point) using Remember Graham Smith
2007-11-16 15:28 ` Bastien
2007-11-16 15:37 ` Daniel Clemente
@ 2007-11-16 18:24 ` Andrew J. Korty
2007-11-16 18:51 ` Graham Smith
2 siblings, 1 reply; 14+ messages in thread
From: Andrew J. Korty @ 2007-11-16 18:24 UTC (permalink / raw)
To: emacs-orgmode
"Graham Smith" <myotisone@gmail.com> writes:
> I have just set up Remember with Org mode (without the template set up),
> when I use C-c C-c to save the entry, it gets saved to notes.org as it
> should, but I also get an error:
>
> Invalid search bound (wrong side of point)
>
> Can some one explain what this means.
I had this problem, and I think I fixed it by moving %a from the end of
my org-remember-templates to the beginning. My templates used to look
something like
* TODO %?
%U
%a
Now I use
* TODO %? %a
%U
which fixed the bug. Plus I like it better anyway.
Iirc, the problem arose when %a was empty.
--
Andrew J. Korty, Deputy Information Security Officer
Office of the Vice President for Information Technology and CIO
Indiana University
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Re: Invalid search bound (wrong side of point) using Remember
2007-11-16 18:24 ` Andrew J. Korty
@ 2007-11-16 18:51 ` Graham Smith
0 siblings, 0 replies; 14+ messages in thread
From: Graham Smith @ 2007-11-16 18:51 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1324 bytes --]
Andrew,
As you will see, I now have this fixed. I did rewrite the template code so
it matched the most recent version of the manual - but not sure what I did
different.
But its working - which is good.
Thanks,
Graham
On 16/11/2007, Andrew J. Korty <ajk@iu.edu> wrote:
>
> "Graham Smith" <myotisone@gmail.com> writes:
>
> > I have just set up Remember with Org mode (without the template set up),
> > when I use C-c C-c to save the entry, it gets saved to notes.org as it
> > should, but I also get an error:
> >
> > Invalid search bound (wrong side of point)
> >
> > Can some one explain what this means.
>
> I had this problem, and I think I fixed it by moving %a from the end of
> my org-remember-templates to the beginning. My templates used to look
> something like
>
> * TODO %?
> %U
> %a
>
> Now I use
>
> * TODO %? %a
> %U
>
> which fixed the bug. Plus I like it better anyway.
>
> Iirc, the problem arose when %a was empty.
>
> --
> Andrew J. Korty, Deputy Information Security Officer
> Office of the Vice President for Information Technology and CIO
> Indiana University
>
>
> _______________________________________________
> 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
>
[-- Attachment #1.2: Type: text/html, Size: 1987 bytes --]
[-- Attachment #2: 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
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2007-11-16 18:51 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-16 14:14 Invalid search bound (wrong side of point) using Remember Graham Smith
2007-11-16 15:28 ` Bastien
2007-11-16 15:46 ` Graham Smith
2007-11-16 16:05 ` Bastien
2007-11-16 16:10 ` Graham Smith
2007-11-16 16:25 ` Bastien
2007-11-16 16:35 ` Graham Smith
2007-11-16 15:37 ` Daniel Clemente
2007-11-16 15:57 ` Bastien
2007-11-16 17:18 ` Daniel Clemente
2007-11-16 17:26 ` Daniel Clemente
2007-11-16 17:27 ` Bastien
2007-11-16 18:24 ` Andrew J. Korty
2007-11-16 18:51 ` Graham Smith
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).