bug-hyperbole
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23873: Advised fill-paragraph breaks kotl-mode


From: Stephen Berman
Subject: bug#23873: Advised fill-paragraph breaks kotl-mode
Date: Thu, 30 Jun 2016 14:34:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

I use:  Editor:      GNU Emacs 25.1.50.2 (x86_64-suse-linux-gnu, GTK+ Version 
3.14.15)

        Hyperbole:   05.14
        Sys Type:    x86_64-suse-linux-gnu
        OS Type:     gnu/linux
        Window Sys:  x
        News Reader: Gnus v5.13

My Emacs init file loads a package that advises fill-paragraph; when I
subsequently type `C-h h k e' to visit Hyperbole's example Koutliner
file, this raises the following error, which prevents the file's buffer
from being in kotl-mode:

Debugger entered--Lisp error: (wrong-type-argument sequencep 128)
  kotl-mode()
  set-auto-mode-0(kotl-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer EXAMPLE.kotl> "~/EXAMPLE.kotl" nil nil 
"~/EXAMPLE.kotl" (436830 2070))
  find-file-noselect("/home/steve/EXAMPLE.kotl" nil nil nil)
  find-file("/home/steve/EXAMPLE.kotl")
  kotl-mode:example()
  funcall-interactively(kotl-mode:example)
  call-interactively(kotl-mode:example)
  hui:menu-act(hyperbole nil nil nil)
  hyperbole(nil nil nil nil)
  funcall-interactively(hyperbole nil nil nil nil)
  call-interactively(hyperbole nil nil)
  command-execute(hyperbole)

This happens because `action:params' expects the first element of
fill-paragraph's byte code to be a list, which it is without the advice:

#[(arg &optional skip-prefix-remove) "\306=\204.\307\310      
\"\207\214\306=\203..\311d}\210        \203!.  9\204!.\312.
\204(.\313 \210\3142P.\204K.\315\316
.\315.......\317\316!\203J.\320\314\307\310       \"\"\210-\321   
\"0)\207" [major-mode arg skip-prefix-remove fill-prefix paragraph-start 
paragraph-separate kotl-mode kfill:funcall fill-paragraph 1 full 
kfill:remove-paragraph-prefix ...] 5 
("/home/steve/.emacs.d/elpa/hyperbole-5.14/kotl/kfill.elc" . 2916) "*P"]

but not after the function is advised:

#[128 "\300\301\302.#\207" [apply ad-Advice-fill-paragraph #[(arg &optional 
skip-prefix-remove) "\306=\204.\307\310   \"\207\214\306=\203..\311d}\210    
    \203!.  9\204!.\312.
\204(.\313 \210\3142P.\204K.\315\316
.\315.......\317\316!\203J.\320\314\307\310       \"\"\210-\321   
\"0)\207" [major-mode arg skip-prefix-remove fill-prefix paragraph-start 
paragraph-separate kotl-mode kfill:funcall fill-paragraph 1 full 
kfill:remove-paragraph-prefix ...] 5 
("/home/steve/.emacs.d/elpa/hyperbole-5.14/kotl/kfill.elc" . 2916) "*P"] nil] 5 
nil "*P"]

(The NUL characters have been deleted from these byte codes.)

Steve Berman





reply via email to

[Prev in Thread] Current Thread [Next in Thread]