bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#13467: 24.3.50; Problem with `advice' show-paren-function


From: nyc4bos
Subject: bug#13467: 24.3.50; Problem with `advice' show-paren-function
Date: Wed, 16 Jan 2013 17:22:56 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt)

Hi,

While trying to send an email message ^C^C `(message-send-and-exit)',
I got the following error message in the echo area:

Error in timer: (wrong-type-argument characterp nil)

I was not able to send the message and could only abort (^G).

I then got a backtrace which I have included (below).

I suspect this is because of the changes to `advice'.

Here is 'advice' function that I am using:

(defadvice show-paren-function (after show-matching-paren-offscreen
                                      activate)
  "If the matching paren is offscreen, show the matching line in the
echo area. Has no effect if the character before point is not of
the syntax class ')'."
  (interactive)
  (let ((matching-text nil))
    ;; Only call `blink-matching-open' if the character before point
    ;; is a close parentheses type character. Otherwise, there's not
    ;; really any point, and `blink-matching-open' would just echo
    ;; "Mismatched parentheses", which gets really annoying.
    (if (char-equal (char-syntax (char-before (point))) ?\))
        (setq matching-text (blink-matching-open)))
    (if (not (null matching-text))
        (message matching-text))))

Thanks.

Debugger entered--Lisp error: (wrong-type-argument characterp nil)
  char-syntax(nil)
  (char-equal (char-syntax (char-before (point))) 41)
  (if (char-equal (char-syntax (char-before (point))) 41) (setq matching-text 
(blink-matching-open)))
  (let ((matching-text nil)) (if (char-equal (char-syntax (char-before 
(point))) 41) (setq matching-text (blink-matching-open))) (if (not (null 
matching-text)) (message matching-text)))
  (let (ad-return-value) (setq ad-return-value (with-no-warnings (funcall 
ad--addoit-function))) (let ((matching-text nil)) (if (char-equal (char-syntax 
(char-before (point))) 41) (setq matching-text (blink-matching-open))) (if (not 
(null matching-text)) (message matching-text))) ad-return-value)
  ad-Advice-show-paren-function(#[nil
  "\203\336`\306\307`S!!\310=\203





In GNU Emacs 24.3.50.1 (i386-mingw-nt6.1.7601)
 of 2013-01-15 on ODIEONE
Bzr revision: 111532 dmantipov@yandex.ru-20130115101431-o6w1qeqwqcmyxmi9
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --with-gcc (4.7) --no-opt --enable-checking --cflags
 -IC:/Devel/emacs/build/include --ldflags -LC:/Devel/emacs/build/lib'

Important settings:
  value of $LANG: en_US
  locale-coding-system: cp1252
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu> 
<send-emacs-bug-report>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win
w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer button faces cus-face macroexp files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process w32notify w32
multi-tty emacs)





reply via email to

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