From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel Clemente" Subject: Re: Invalid search bound (wrong side of point) using Remember Date: Fri, 16 Nov 2007 16:37:43 +0100 Message-ID: References: <2c75873c0711160614y736c62a0i71451703d71e503e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1It3GQ-0002qK-Hk for emacs-orgmode@gnu.org; Fri, 16 Nov 2007 10:37:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1It3GO-0002p2-Ex for emacs-orgmode@gnu.org; Fri, 16 Nov 2007 10:37:48 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1It3GO-0002oi-3U for emacs-orgmode@gnu.org; Fri, 16 Nov 2007 10:37:48 -0500 Received: from fk-out-0910.google.com ([209.85.128.190]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1It3GN-0008FD-9k for emacs-orgmode@gnu.org; Fri, 16 Nov 2007 10:37:47 -0500 Received: by fk-out-0910.google.com with SMTP id 18so369946fkq for ; Fri, 16 Nov 2007 07:37:44 -0800 (PST) In-Reply-To: <2c75873c0711160614y736c62a0i71451703d71e503e@mail.gmail.com> Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Graham Smith Cc: emacs-orgmode@gnu.org 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("^[ =09]+" # t) (while (re-search-forward "^[ =09]+" 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 "^[ =09]+" 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 "^[ =09]+" 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 (=3D 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 (=3D shift 0) nil (save-restriction (narrow-to-region beg end) (while ... ... ...) (goto-char ...))) (unless (=3D 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[ =09]*\\'" txt) (insert "\n")) (setq end (point)) (goto-char beg) (unless (=3D 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%3Dorgmod= e&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%3D= 1164913862243a78" 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%3D= 1164913862243a78" 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%3D= 1164913862243a78" 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%3D= 1164913862243a78" 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%3D= 1164913862243a78" 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("=C6=10=09@=C7=3D=83!=00=C8=C9=CA\"=88=CB=C9!=89=1AA@)=A2=CC=3D= =83!=00=C8=CD=CA\"=88=CE=0B!=88=CF =88=D0=09!=88\f=83c=00=D1ed\" V=83W=00eb=88=D2 =A5y=88`=1E=1Bdb=88=D2 =A5 Zy=88=0E=1B`|=88)=D3c=88eb=88=D4=D5=D6 \"=88=D7 =88=D4=D8!=88=D9=CA=1E=1C= =1E=1D=D4=D8!=88=8A=DA =88+=D9=87" [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 : > 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 >