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

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

bug#55678: 29.0.50; C-c C-w and errors in major-mode-hook


From: Visuwesh
Subject: bug#55678: 29.0.50; C-c C-w and errors in major-mode-hook
Date: Sat, 28 May 2022 22:35:13 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

[சனி மே 28, 2022] Lars Ingebrigtsen wrote:

> Visuwesh <visuweshm@gmail.com> writes:
>
>> If that is indeed the norm, then I can go complain elsewhere I guess.
>
> For the record, I'm unable to reproduce any problems if I say
>
> (add-hook 'emacs-lisp-mode-hook 'paredit-mode)
>
> and then otherwise follow your recipe.

That's because paredit-mode only signals an error if there's a paren or
quote mismatch---whenever `check-parens' errors.  paredit-mode signals
an error for the following chunk for me,

;;; Xref backend
;;;

;;;###autoload
(defun imenu-xref-backend ()
  (unless imenu--index-alist
    (imenu--make-index-alist))
  (when (and imenu--index-alist
             (not (progn (require 'etags) tags-table-files)))
    'imenu))

(cl-defmethod xref-backend-identifier-at-point ((_backend (eql 'imenu)))

I can work around the problem by doing,

    (setq paredit-override-check-parens-function #'always)





reply via email to

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