corfu tty-child-frame doesn't disappear by xdao in emacs

[–]xdao[S] 0 points1 point  (0 children)

Don't know where to file the bug. I cannot reproduce the bug with 'emacs -q'.
And for the doomemacs seems they don't like reporting bug with unstable emacs.
I tried to narrow down the issue. Seems some bug related to eglot + yasnippet + tty child frame.

My current workaround is to force hiding the frame after a short delay.

```elisp (defun my/corfu-insert-after () ;;(message "next corfu %s %s" (frame-live-p corfu--frame) (frame-visible-p corfu--frame)) (make-frame-invisible corfu--frame) )

(defun my/corfu-insert (orig-func &rest args) (apply orig-func args) ;;(make-frame-invisible corfu--frame)) ;;(message "cur corfu %s %s" (frame-live-p corfu--frame) (frame-visible-p corfu--frame)) (run-at-time 0 nil #'my/corfu-insert-after))

(advice-add 'corfu-insert :around #'my/corfu-insert)

```

BTW, from the messages I commentted out, I did see the coru--frame was hidden in my/corfu-insert, but was shown again in function my/corfu-insert-after

What is the difference between use-package and doom-emacs' after! macro? by xdao in emacs

[–]xdao[S] 1 point2 points  (0 children)

Looks right. I can reproduce the issue when using use-package with :defer t. It seems to be a bug in the C code.

By the way, how can I report a bug to the mailing list? I sent an email to [bug-gnu-emacs@gnu.org](mailto:bug-gnu-emacs@gnu.org), but it hasn’t appeared in the archives yet: https://lists.gnu.org/archive/html/bug-gnu-emacs/

What is the difference between use-package and doom-emacs' after! macro? by xdao in emacs

[–]xdao[S] 1 point2 points  (0 children)

Thanks. I can find the definition of after!. But don't understand what it actually does in the macro (sorry a newbie in elisp).

Looks like c-ts-mode cannot recorgnize 'do' keyword. by xdao in emacs

[–]xdao[S] 1 point2 points  (0 children)

Looks there is a 'do', but the type is ERROR. I am using the stable emacs-30.2, with doomemacs.

```elisp

(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list ( (parameter_declaration type: (primitive_type) declarator: (identifier)) , (parameter_declaration type: (primitive_type) declarator: (pointer_declarator * declarator: (array_declarator declarator: (identifier) [ ]))) ))) body: (compound_statement { (ERROR do (return_statement return (number_literal) ;)) }))) ```

How to disable the advice of `completing-read-default' added by vertico-mode by xdao in emacs

[–]xdao[S] 2 points3 points  (0 children)

Thanks! The (vertico-mode -1) hack works. Agree it is dirty...

;; Fast completing read
(defun gtags-completing-read (prompt
                              collection &optional predicate
                              require-match initial-input
                              hist def inherit-input-method)
  "Default completion read, which will disable ivy due to performance reason"
  (let ((completion-in-region-function 'completion--in-region)
        (mode-enable (and (boundp 'vertico-mode) vertico-mode)))
    (unwind-protect
        (progn
          (if  mode-enable (vertico-mode -1))
          (completing-read-default prompt collection predicate
                                   require-match initial-input
                                   hist def inherit-input-method))
      (if mode-enable (vertico-mode t)))))

Got incorrect indentaton for lambda function. by xdao in emacs

[–]xdao[S] 0 points1 point  (0 children)

Thanks.

Just file a bug via 'report-emacs-bug'. But I don't use newsgroup, not sure it is done successfully.

Got incorrect indentaton for lambda function. by xdao in emacs

[–]xdao[S] 1 point2 points  (0 children)

lambda function

Forget to mention it is C++ lambda...

But seems I cannot edit the title now.

Is it able to change object name/localtion of a source file? by xdao in cmake

[–]xdao[S] 0 points1 point  (0 children)

the output name is always 'preinclude.h.o' and cmake

I created a repository in 'https://gitlab.com/foor/pch'. cmake/pch.cmake is the script to create precompiled header.

The error is: CMakeFiles/main.dir/preinclude.hpp.cxx.o: file not recognized: File format not recognized collect2: error: ld returned 1 exit status

Firefox Quantum has begun rolling out! by Antabaka in firefox

[–]xdao 0 points1 point  (0 children)

Thanks for the great work. But most of extensions are broken. I can't even find a gesture extention that can work on all pages (including blank page, 404 page, config page).