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

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

blink-matching-open and beginning-of-defun.


From: Michael Cadilhac
Subject: blink-matching-open and beginning-of-defun.
Date: Fri, 23 Sep 2005 13:28:59 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

  Hello list !

  I think a bug was introduced by Richard with this patch:

Message-Id: <address@hidden>
Date: Thu, 08 Sep 2005 21:11:34 -0400
Subject: [Emacs-diffs] Changes to emacs/lisp/simple.el

  Since this patch, I'm always warned about mismatched parenthesis on
  opening ones when using c-mode.

  Test case :

  C-x b *scratch* RET M-x c-mode RET ( (

  Note that if there is actually a matching closing parenthesis, the
  message is still sent.
  (I mean, if you do ") ) C-a ( ("

  This patch fixed the fact that a single ')' is not warned (at least,
  if  the  parenthesis is  NOT  the first  char  of  the buffer),  but
  introduced lot more warns.


  Secondly, I'm wondering why beginning-of-defun matchs '^('. I was
  expecting, with a file like

(defun foo ()
  (defun bar ()
    (message "baz"))
  (bar))
(foo)

  when I do a beg-of-defun on (message), to be on (defun bar ()).

  Moreover, when I roughtly copy/paste a function from a diff, and
  remove +/-/!, C-M-x does not behave like expected because of that.


  Have a nice M-x day !

-- 
    Michael Cadilhac, a.k.a. Micha [mika] |
                    Epita/LRDE promo 2007 |  Please note that you should
  2 rue de la Convention | 08.70.65.13.14 |  s/address@hidden/@/ my mail 
address.
94270 Le Kremlin Bicetre | 06.23.20.31.30 |

Attachment: pgputwPF1Dya7.pgp
Description: PGP signature


reply via email to

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