juanjosegarciaripoll / emacs-build

Scripts to build a distribution of Emacs from sources, using MSYS2 and Mingw64(32)
MIT License
40 stars 54 forks source link

Is the --nativecomp flag working? #5

Open baracunatana opened 3 years ago

baracunatana commented 3 years ago

Hi

I see it in emacs-build.cmd, but not in the README file. Is it working properly?

Thanks,

juanjosegarciaripoll commented 3 years ago

No, it is not working for me. I added it, but the result is giving me some headaches and does not work yet as it should. Any help is appreciated.

baracunatana commented 3 years ago

I managed to compile, run, and load a basic config using the following commands from MinGW 64

pacman -Syu
pacman -S base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-xpm-nox mingw-w64-x86_64-libtiff mingw-w64-x86_64-giflib mingw-w64-x86_64-jbigkit mingw-w64-x86_64-libpng mingw-w64-x86_64-libjpeg-turbo mingw-w64-x86_64-librsvg mingw-w64-x86_64-libxml2 mingw-w64-x86_64-gnutls mingw-w64-x86_64-libgccjit mingw-w64-x86_64-jansson texinfo mingw-w64-x86_64-cairo mingw-w64-x86_64-zlib git
git clone git://git.savannah.gnu.org/emacs.git
cd emacs
git config core.autocrlf false
git checkout feature/native-comp
mkdir /c/Users/Juan/Aplicaciones/emacs
./autogen.sh
mkdir build
cd build
../configure --with-nativecomp --with-gnutls --with-jpeg --with-png --with-rsvg --with-xml2 --without-imagemagick --without-pop
make -j8
make install prefix=/c/Users/Juan/Aplicaciones/emacs

I'm currently facing some issues with pdf-tools that apparently surface only in the native-comp branch, but so far so good.

One thing I'm not sure about is if it really has performance benefits. My agenda generates faster, but opening a file seems slower... Any clue on how to really test it out?

baracunatana commented 3 years ago

The pdf-tools issues are fixed with https://github.com/politza/pdf-tools/pull/588. It hast to be done manualy while the PR is accepted in the pdf-tools repo.

However, I can't seem to make pdf-tools work with highlights. I just can't select text for highlith annotations... I know this isn't part of your project and shouldn't be discussed in this repo, but can you share your pdf-tools config section? I currently have:

(use-package pdf-tools
    :init
    ;(pdf-tools-install)

    :mode
    ;; Arrancar pdf-view-mode al abrir un pdf
    ("\\.pdf\\'" . pdf-view-mode)

    :hook
    ;; Evitar que el titileo del cursos ponga a titilar todo el documento
    (pdf-view-mode . (lambda () (blink-cursor-mode -1)))
    ;; Deshabilitar display-line-number-mode en pdf-view
    (pdf-view-mode . (lambda () (display-line-numbers-mode -1))))
juanjosegarciaripoll commented 3 years ago

There is a mistake in the code for highlighting in pdf-tools. It has the wrong number of arguments for one function. I have a local fix, but I do not remember where.

El mié., 17 feb. 2021 17:18, baracunatana notifications@github.com escribió:

The pdf-tools issues are fixed with politza/pdf-tools#588 https://github.com/politza/pdf-tools/pull/588. It hast to be done manualy while the PR is accepted in the pdf-tools repo.

However, I can't seem to make pdf-tools work with highlights. I just can't select text for highlith annotations... I know this isn't part of your project and shouldn't be discussed in this repo, but can you share your pdf-tools config section? I currently have:

(use-package pdf-tools :init ;(pdf-tools-install)

:mode
;; Arrancar pdf-view-mode al abrir un pdf
("\\.pdf\\'" . pdf-view-mode)

:hook
;; Evitar que el titileo del cursos ponga a titilar todo el documento
(pdf-view-mode . (lambda () (blink-cursor-mode -1)))
;; Deshabilitar display-line-number-mode en pdf-view
(pdf-view-mode . (lambda () (display-line-numbers-mode -1))))

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/juanjosegarciaripoll/emacs-build/issues/5#issuecomment-780671915, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQWH7T7DZBNFJYFM7KKSNDS7PT5JANCNFSM4XRNDS5Q .