From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Debugger entered--Lisp error: (void-function -mode) Date: Mon, 22 Nov 2010 21:48:25 +0100 Message-ID: <80eiadw0dh.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello, When having the following code in any Org page, I now have an error generat= ed. - If the code is in a =3Dbegin_src html=3D block, no problem. - If between a =3Dbegin_html=3D, see what I get. * Some code #+begin_html #+end_html * Debug info #+begin_src emacs-lisp Debugger entered--Lisp error: (void-function -mode) -mode() funcall(-mode) (if (eq major-mode lang-mode) nil (funcall lang-mode)) (unless (eq major-mode lang-mode) (funcall lang-mode)) (save-current-buffer (set-buffer (get-buffer-create ...)) (delete-region = (point-min) (point-max)) (insert string) (unless (eq major-mode lang-mode) = (funcall lang-mode)) (font-lock-fontify-buffer) (setq pos (point-min)) (whi= le (setq next ...) (put-text-property ... ... ... ... org-buffer) (setq pos= next))) (with-current-buffer (get-buffer-create (concat " org-src-fontification:"= ...)) (delete-region (point-min) (point-max)) (insert string) (unless (eq = major-mode lang-mode) (funcall lang-mode)) (font-lock-fontify-buffer) (setq= pos (point-min)) (while (setq next ...) (put-text-property ... ... ... ...= org-buffer) (setq pos next))) (let* ((lang-mode ...) (string ...) (modified ...) (org-buffer ...) pos n= ext) (remove-text-properties start end (quote ...)) (with-current-buffer (g= et-buffer-create ...) (delete-region ... ...) (insert string) (unless ... .= ..) (font-lock-fontify-buffer) (setq pos ...) (while ... ... ...)) (add-tex= t-properties start end (quote ...)) (set-buffer-modified-p modified)) org-src-font-lock-fontify-block("" 27 287) #+end_src I don't understand why. Maybe it will ring a bell to you? Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode