unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5122: Mismatched parentheses when dealing with huge buffer content
@ 2009-12-04 15:31 Deniz Dogan
  2009-12-04 22:27 ` bug#5122: Mismatched parentheses when dealing with huge buffercontent Drew Adams
  0 siblings, 1 reply; 21+ messages in thread
From: Deniz Dogan @ 2009-12-04 15:31 UTC (permalink / raw)
  To: emacs-pretest-bug

In GNU Emacs 23.1.1 (i386-mingw-nt6.0.6002)
 of 2009-07-30 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 6.0.6002
configured using `configure --with-gcc (4.4)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  shell-dirtrack-mode: t
  rcirc-track-minor-mode: t
  diff-auto-refine-mode: t
  yas/global-mode: t
  yas/minor-mode: t
  global-auto-complete-mode: t
  auto-complete-mode: t
  cua-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v
C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v
C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v
C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v
M-k C-n <C-return> M-f C-g C-g <C-return> C-f C-f C-f
C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f
C-f C-f C-f C-f C-f C-f C-f C-f C-v C-v C-v C-v C-v
C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v
C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v
C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v
C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v
C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v
C-v C-v C-v C-v C-v C-v C-v M-v M-v M-v M-v M-v M-v
M-v M-v M-v M-v C-v C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n M-k C-g M-< C-n C-p M-n
C-p C-e <backspace> ) C-t C-s M-< M-n M-v <down-mouse-1>
<mouse-movement> <down-mouse-4> <drag-mouse-1> C-t
o C-t C-g C-h v <up> <return> C-n C-n C-n C-t o C-n
C-n C-n C-n C-n C-n C-n C-SPC M-n M-w C-t o C-t u s
c r a <return> C-y M-< C-n C-n M-> C-p C-e <backspace>
) M-x r e p o r t - e m a c s <tab> <return>

When taking the value of ucs-completions given by C-h v
ucs-completions and inserting it in the scratch buffer, Emacs is
unable to determine that a correct parentheses match is made. (Pardon
my English.) I simply remove the last of the two trailing parentheses
of the expression and insert a new trailing parenthesis (making the
content identical to what it was initially), and I get "Mismatched
parentheses".

-- 
Deniz Dogan





^ permalink raw reply	[flat|nested] 21+ messages in thread
* bug#5122: Mismatched parentheses when dealing with huge buffercontent
@ 2009-12-05 20:57 Chong Yidong
  2009-12-05 21:42 ` Stefan Monnier
  2009-12-05 21:47 ` Eli Zaretskii
  0 siblings, 2 replies; 21+ messages in thread
From: Chong Yidong @ 2009-12-05 20:57 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 5122

> I think it's better to modify the echo area message, such that if
> Emacs hits the blink-matching-paren-distance limit (as opposed to
> hitting point-min), the message says something like
>
>   Mismatched parentheses (within blink-matching-paren-distance)

Error messages shouldn't be so verbose---they can't spell out every bell
and whistle related to the error.  I prefer leaving things the way they
are.





^ permalink raw reply	[flat|nested] 21+ messages in thread
* bug#5122: Mismatched parentheses when dealing with huge buffercontent
@ 2009-12-08 21:11 MON KEY
  0 siblings, 0 replies; 21+ messages in thread
From: MON KEY @ 2009-12-08 21:11 UTC (permalink / raw)
  To: 5122

For really large groups of parens of type `mismatch-maybe' would it be
possible/reasonable/faster to do a check/balance to the nearest pair
of parens relative
the first 10 Catalan numbers e.g. something like this (or his brethren):

(URL `http://www2.research.att.com/~njas/sequences/A000108')
(URL `http://www2.research.att.com/~njas/sequences/table?a=108&fmt=4')

--
s_P





^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2011-07-13 17:26 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-04 15:31 bug#5122: Mismatched parentheses when dealing with huge buffer content Deniz Dogan
2009-12-04 22:27 ` bug#5122: Mismatched parentheses when dealing with huge buffercontent Drew Adams
2009-12-05  0:27   ` Deniz Dogan
2009-12-05  0:31     ` Drew Adams
2009-12-05  0:35       ` Deniz Dogan
2009-12-05  9:27       ` Eli Zaretskii
2009-12-05 16:10         ` Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
2009-12-05 20:57 Chong Yidong
2009-12-05 21:42 ` Stefan Monnier
2009-12-05 22:06   ` Chong Yidong
2009-12-05 21:47 ` Eli Zaretskii
2009-12-05 22:11   ` Chong Yidong
2009-12-06  4:03     ` Eli Zaretskii
2009-12-06 15:30       ` Chong Yidong
2009-12-06 17:52         ` Eli Zaretskii
2009-12-06 18:59           ` Chong Yidong
2009-12-07  2:25   ` Stefan Monnier
2011-07-13 14:59     ` Lars Magne Ingebrigtsen
2011-07-13 16:35       ` Drew Adams
2011-07-13 17:26       ` Drew Adams
2009-12-08 21:11 MON KEY

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).