From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Umar Ahmad via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#51111: 28.0.50; Wrong point position on mouse click when using line-height on scaled text Date: Sun, 10 Oct 2021 02:53:10 +0530 Message-ID: References: Reply-To: Umar Ahmad Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f9808705cdf21a0e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32500"; mail-complaints-to="usenet@ciao.gmane.io" To: 51111@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 09 23:39:18 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mZK3o-0008Gr-7K for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Oct 2021 23:39:17 +0200 Original-Received: from localhost ([::1]:60998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZK3n-0001D7-49 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Oct 2021 17:39:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZJp4-00005w-Ki for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 17:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42660) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZJp4-0003ku-9k for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 17:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZJp3-0002jU-UD for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 17:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Umar Ahmad Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Oct 2021 21:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51111 X-GNU-PR-Package: emacs Original-Received: via spool by 51111-submit@debbugs.gnu.org id=B51111.163381462810480 (code B ref 51111); Sat, 09 Oct 2021 21:24:01 +0000 Original-Received: (at 51111) by debbugs.gnu.org; 9 Oct 2021 21:23:48 +0000 Original-Received: from localhost ([127.0.0.1]:54206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZJoo-0002ix-Em for submit@debbugs.gnu.org; Sat, 09 Oct 2021 17:23:47 -0400 Original-Received: from sonic314-20.consmr.mail.sg3.yahoo.com ([106.10.240.144]:36416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZJoj-0002id-GL for 51111@debbugs.gnu.org; Sat, 09 Oct 2021 17:23:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.in; s=s2048; t=1633814612; bh=tygD5VQGAKnDDslWsQrm+NXnWraWMZFfOovPaz3ym30=; h=References:In-Reply-To:From:Date:Subject:To:From:Subject:Reply-To; b=SUnh8oJeAntjz8JWbtcf9AENSjltoC2GSYgTf1h0oeDwVnzF01avE6XK5h4puSBjF707yF1Dubs2UF39RgL+l8GGRlIVyMVu+PWNW4ajOeY22bGN76WHmicXnF2O33CgfeB+ndVeLVaDx13dAZwKPNk67PHeKULH5kIy05Vg1vyJ12HczrcVH5J512vkrD2HTG810nw5sTvS2GSW6HW2Wlnbvm+cjVPMB6AR7s0ql7FsrCPKSNKv0os2QnUfcao225KNiw1Bxasxf7w91Nf0Md55e5z5N4rJstddfyGwi3JgL/vDNROHLf3BVIPtkzj7GuypcR5eUAdIMWNyj6fuFg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1633814612; bh=cTvmf+SjWa7OGYcp98mdnQP9MPCTPxn/U1JhxRNj0Xx=; h=X-Sonic-MF:From:Date:Subject:To:From:Subject; b=HirkcHeSbUeAngpmMhh5tyC+V2TE0n3odH5RnRQQ/zZMQH7TiZ98cxecNy8thEtauYVrz1CdIyGLe8mIAVPpTxVXDIfJYRLteuktDBlKc9SlYHMzzfeFoVt0KkUxEfpQp8DXYHVcN+X6iRlDapjj45BbxB8sMAoQ+1hQhMCTeQ0GARPXL5J8djc6f6/K670OraYij6ejPS4VxD8McOGpo17BR6UheiT1gcgedF/2OVvNhf0s+R/b9Vq78tuyNi44ZD4NWmrxKu8I7VyBZMpF+IMWzRn2TVfEf+qchf9Ngrc6pr1YLsW6MHL0L4rIYhzfUZWcRpv5wlskI1pCQpk45w== X-YMail-OSG: _xeFszMVM1nHEcg7nixTmfoyYE6kBoSJ4cTJeTQ.eLN1PlYrMzVgXHVICjBWKzf 5Lw9uoD9PZWy_e0sXp0JiEtvx2_rzqoQYS10_ajktBRp6eOXasOuDVLKb0jHjVD6Vwg1HApdhi4I 4yeVmy_oloeMtcyMTXj5xj_j14Hgbkn8Ktl70loHM30NSLGFzsSb9.hVsCux3rimNjRtxd6z3kkf cgIFjT3sqIk16RKc97JcVxd09Nj1m5qstYu1ZgnVxHRpuGncZ6chOJ0O_hdPNk9nrN0LGaXsLW6R 5sDWuC1Vmngfs7QA7IsLJBuKUwtFGPOBZG5EdLn31QPq4Ml6NkHBReXqn1WpWlf9fmwj33iSzL1N X3tq7qNcO9unSZ2PtHEqnC._PoQnh7SK.HxOWiZtvfopNMUGl1FIvzVlvIAq5A65F0r6xO6cCu0G _HxVq9bJvXzkQwIjAysTYorWDLPqSsj6D5kzktZ8m_frWPjXN46lpSrnnfh6wKZHCbg3C06jwOlR Q7.79q5XhE73SiTRl53ZcayZAq1LrJ6oZ8j1EsDq4F9hqgRQKcM1u.b7RPLv2xuZOidlbYiY73zt nSl.QAJkvWDMcBk_5D9KVdtGs8qzSHOnyyg2dUZVACEws3BVhCMUewTEC9Ojy0b_9a6Fu7Qxp2AV Cv1sKExUursndQc0tDisG3Fw.9rpNZHAvoaTby1q2ntaOwqbWiS61_yIkxHjyndJB5p3.kpLK_Dv UYiPAcmYM.AimevDezcwdNludvjE1rBK34Lr_S_lSOIhPaAq7fyd.vN8zrt4jaIABQk5aBp9jfl_ 9TGek5cAXseEIYbmserE9jkknO1g1pBNUEQYLS.r0c X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.sg3.yahoo.com with HTTP; Sat, 9 Oct 2021 21:23:32 +0000 Original-Received: by kubenode524.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 6704bc8c3fa6832aeb406e4b725e82dd; Sat, 09 Oct 2021 21:23:24 +0000 (UTC) Original-Received: by mail-il1-f178.google.com with SMTP id i11so12850249ila.12 for <51111@debbugs.gnu.org>; Sat, 09 Oct 2021 14:23:24 -0700 (PDT) X-Gm-Message-State: AOAM533p+NjEh2SDZCxzqMsxM/neI0ySMj/NvwwnDFLdzJiKgUMIz5zD GaddplWXI4ID4JrQF1rNe3+jgZe4JyxSgNGOXGo= X-Google-Smtp-Source: ABdhPJzozSPdn/MoMpdBzSfnoQ0z61ddLxPztAWyZIbQE1hgQFhBppSX4wY8gzuuymAB2LYuIVmVapu9z4vejpZrRE8= X-Received: by 2002:a05:6e02:15c6:: with SMTP id q6mr13067303ilu.221.1633814601890; Sat, 09 Oct 2021 14:23:21 -0700 (PDT) In-Reply-To: X-Gmail-Original-Message-ID: X-Mailer: WebService/1.1.19116 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:216794 Archived-At: --000000000000f9808705cdf21a0e Content-Type: text/plain; charset="UTF-8" Actually, This only happens when I do a `setq-default` Setting it only for a single buffer with a `setq-local` seems to not cause the problem described above On Sun, Oct 10, 2021 at 1:23 AM Umar Ahmad wrote: > > Mouse clicks on some text in an emacs window does not correctly position > the point when the line-height is set to some value and the text is > scaled to become larger > > Steps to reproduce with emacs -Q > - Open a new buffer (C-x b *test-buffer RET) > - Yank few lines of text from somewhere > - Eval (M-:) the following: > `(setq-default default-text-properties '(line-height 1.1))` > - Scale text to make it larger (C-x C-= = = =) > - Click on any line to place the point at that location. > - Point is placed few lines further below the click position > > - Reset the line-height to nil by evaluating: > `(setq-default default-text-properties '(line-height nil))` > - Click on any line to place point at that location. > - Point is placed correctly > > > > In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin20.5.0, NS > appkit-2022.50 Version 11.4 (Build 20F71)) > of 2021-07-31 built on Umars-MacBook-Pro.local > Windowing system distributor 'Apple', version 10.3.2022 > System Description: macOS 11.5.2 > > Configured using: > 'configure --disable-dependency-tracking --disable-silent-rules > --enable-locallisppath=/usr/local/share/emacs/site-lisp > --infodir=/usr/local/Cellar/emacs-plus@28/28.0.50/share/info/emacs > --prefix=/usr/local/Cellar/emacs-plus@28/28.0.50 --with-xml2 > --with-gnutls --with-native-compilation --without-dbus > --with-imagemagick --with-modules --with-rsvg --with-xwidgets --with-ns > --disable-ns-self-contained 'CFLAGS=-I/usr/local/opt/gcc/include > -I/usr/local/opt/libgccjit/include -I/usr/local/opt/gmp/include > -I/usr/local/opt/jpeg/include' 'LDFLAGS=-L/usr/local/lib/gcc/11 > -I/usr/local/opt/gcc/include -I/usr/local/opt/libgccjit/include > -I/usr/local/opt/gmp/include -I/usr/local/opt/jpeg/include'' > > Configured features: > ACL GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES > NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF > TOOLKIT_SCROLL_BARS XIM XWIDGETS ZLIB > > Important settings: > value of $LC_ALL: en_US.UTF-8 > value of $LANG: en_US.UTF-8 > locale-coding-system: utf-8-unix > > Major mode: ELisp/d > > Minor modes in effect: > flyspell-lazy-mode: t > winner-mode: t > global-git-commit-mode: t > shell-dirtrack-mode: t > org-roam-db-autosync-mode: t > auto-insert-mode: t > org-wild-notifier-mode: t > pdf-occur-global-minor-mode: t > dap-tooltip-mode: t > dap-ui-many-windows-mode: t > dap-ui-controls-mode: t > dap-ui-mode: t > treemacs-filewatch-mode: t > treemacs-follow-mode: t > treemacs-git-mode: t > treemacs-fringe-indicator-mode: t > dap-auto-configure-mode: t > dap-mode: t > yas-global-mode: t > yas-minor-mode: t > ws-butler-mode: t > whitespace-mode: t > global-gumshoe-mode: t > mini-frame-mode: t > which-key-mode: t > selected-global-mode: t > selected-minor-mode: t > smartparens-global-mode: t > smartparens-mode: t > global-undo-tree-mode: t > undo-tree-mode: t > global-so-long-mode: t > all-the-icons-ivy-rich-mode: t > ivy-rich-mode: t > projectile-mode: t > ivy-mode: t > save-place-mode: t > git-gutter-mode: t > global-auto-revert-mode: t > eros-mode: t > display-line-numbers-mode: t > hl-line-mode: t > highlight-numbers-mode: t > show-paren-mode: t > dtrt-indent-mode: t > company-box-mode: t > company-mode: t > flycheck-posframe-mode: t > recentf-mode: t > flycheck-mode: t > global-subword-mode: t > subword-mode: t > +popup-mode: t > doom-modeline-mode: t > override-global-mode: t > tooltip-mode: t > global-eldoc-mode: t > eldoc-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > tab-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > size-indication-mode: t > column-number-mode: t > line-number-mode: t > transient-mark-mode: t > hs-minor-mode: t > > Load-path shadows: > /Users/umar/.config/emacs/elpa/magit-20210916.1754/magit-section-pkg hides > /Users/umar/.config/emacs/elpa/magit-section-20210829.1849/magit-section-pkg > /Users/umar/.config/emacs/elpa/protobuf-mode-20200619.1742/protobuf-mode > hides /usr/local/share/emacs/site-lisp/protobuf/protobuf-mode > /Users/umar/.config/emacs/elpa/transient-20210819.2118/transient hides > /usr/local/Cellar/emacs-plus@28/28.0.50/share/emacs/28.0.50/lisp/transient > > Features: > (shadow sort emacsbug dap-variables dap-hydra nano-light-theme > nano-theme nano-modeline autoload tar-mode arc-mode archive-mode > mm-archive tetris gamegrid two-column git-rebase org-gcal persist > org-generic-id request-deferred deferred htmlize novice rainbow-mode > wgrep gorepl-mode bongo lastfm-submit calc-frac eieio-opt shortdoc > flyspell-lazy flyspell forge-list forge-commands forge-semi > forge-bitbucket buck forge-gogs gogs forge-gitea gtea forge-gitlab glab > forge-github ghub-graphql treepy gsexp ghub forge-notify forge-revnote > forge-pullreq forge-issue forge-topic yaml forge-post forge-repo forge > forge-core forge-db closql pcmpl-unix pcmpl-gnu osx-dictionary > hippie-exp winner calc-math edraw-color-picker edraw-color edraw-path > edraw-dom-svg edraw-math edraw-util debug saveplace-pdf-view pdf-sync > pdf-outline pdf-links pdf-history browse-at-remote > rectangular-region-mode mc-hide-unmatched-lines-mode mc-mark-more > mc-cycle-cursors multiple-cursors-core counsel-jq dumb-jump mail-extr > artist picture reporter rect bug-reference magit-extras magit-delta > xterm-color magit-bookmark magit-submodule magit-obsolete magit-blame > magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch > magit-clone magit-remote magit-commit magit-sequence magit-notes > magit-worktree magit-tag magit-merge magit-branch magit-reset > magit-files magit-refs magit-status magit magit-repos magit-apply > magit-wip magit-log which-func magit-diff git-commit log-edit message > rfc822 mml mml-sec epa mm-decode mm-bodies mm-encode mailabbrev > gmm-utils add-log magit-core magit-autorevert magit-margin > magit-transient magit-process with-editor magit-mode magit-git > magit-utils esxml nov esxml-query smerge-mode cl-print doom-one-theme > olivetti popup expand-region subword-mode-expansions > text-mode-expansions cc-mode-expansions the-org-mode-expansions > js-mode-expansions html-mode-expansions css-mode-expansions > er-basic-expansions expand-region-core expand-region-custom helpful > trace edebug backtrace info-look elisp-refs help-fns radix-tree ivy-xref > smart-jump-lisp-mode smart-jump-go-mode smart-jump-elisp-mode > smart-jump-cc-mode smart-jump shr-color url-cache zoom repeat > +projectile-find-file vterm docker-tramp tramp-cache tramp > tramp-loaddefs trampver tramp-integration files-x tramp-compat ls-lisp > vterm-module term/xterm xterm shell-pop term shell ehelp format-all > language-id inheritenv org-clock calibredb-ivy calibredb-utils > calibredb-annotation calibredb-transient calibredb-show calibredb-faces > calibredb-search calibredb-core sendmail org-archive org-ql-search > org-ql-view transient ov crm org-super-agenda org-ql peg ts anki-editor > request mailheader ox-odt rng-loc rng-uri rng-parse rng-match rng-dt > rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex > ox-icalendar ox-html table ox-ascii ox-publish ox tabify timezone > cal-move parse-time hide-mode-line org-roam-protocol org-protocol > org-roam-migrate org-roam-mode org-roam-capture org-roam-node > org-roam-db org-roam-utils org-roam-compat org-roam org-capture org-id > emacsql-sqlite url-http url-auth mail-parse rfc2231 url-gw emacsql > emacsql-compiler magit-section misearch multi-isearch calc-arith cal-dst > calc-misc calc-forms calccomp calc-units calc-alg calc-menu counsel-calc > autoinsert org-wild-notifier async alert log4e notifications dbus gntp > org-timeline ace-window avy diary-lib diary-loaddefs cal-iso > org-duration cursor-sensor keepass-mode makefile-executor make-mode > conf-mode flycheck-plantuml plantuml-mode sh-script executable eimp > mhtml-mode css-mode smie eww url-queue shr kinsoku svg xml mm-url gnus > nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums > mail-utils mm-util mail-prsvr smartparens-html sgml-mode diredfl > all-the-icons-dired vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs > vc-rcs dired-filter dired-hacks-utils dired-x diff-hl-dired diff-hl > log-view pcvs-util vc-dir vc flycheck-golangci-lint dap-go go-mode > find-file ffap etags fileloop terraform-mode hcl-mode sql > lsp-diagnostics lsp-modeline lsp-ui lsp-ui-flycheck lsp-ui-doc xwidget > goto-addr lsp-ui-imenu lsp-ui-peek lsp-ui-sideline lsp-ui-util view > flycheck-phpstan phpstan dap-php dap-utils php-mode speedbar ezimage > dframe php-face php php-project flymake-proc flymake company-dabbrev > org-superstar lsp-zig lsp-steep lsp-svelte lsp-sqls lsp-yaml lsp-xml > lsp-vimscript lsp-vhdl lsp-vetur lsp-html lsp-verilog lsp-vala lsp-v > lsp-terraform lsp-tex lsp-sorbet lsp-solargraph lsp-rust lsp-rf lsp-r > lsp-purescript lsp-pylsp lsp-pyls lsp-pwsh lsp-php lsp-perl lsp-ocaml > lsp-nix lsp-nim lsp-markdown lsp-lua lsp-kotlin lsp-json lsp-javascript > lsp-haxe lsp-groovy lsp-hack lsp-graphql lsp-go lsp-completion > lsp-gdscript lsp-fsharp lsp-fortran lsp-eslint lsp-erlang lsp-elixir > lsp-elm lsp-dockerfile lsp-dhall lsp-d lsp-css lsp-csharp gnutls > lsp-crystal lsp-cmake lsp-clojure lsp-semantic-tokens lsp-clangd dom > lsp-beancount lsp-bash lsp-angular lsp-ada lsp-actionscript json-mode > json-reformat json-snatcher smartparens-javascript js > org-fancy-priorities org-appear org-pretty-table org-pdftools pdf-annot > facemenu pdf-occur tablist tablist-filter semantic/wisent/comp > semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util > semantic semantic/tag semantic/lex semantic/fw mode-local cedet > pdf-isearch let-alist pdf-misc pdf-tools pdf-view treemacs-bookmarks > bookmark jka-compr pdf-cache pdf-info tq pdf-util pdf-macs image-mode > exif org-noter spell-fu ispell org-indent image-file image-converter > org-element avl-tree generator org-habit org-agenda org-refile ol-bibtex > bibtex iso8601 smartparens-org ob-plantuml org ob ob-tangle ob-ref > ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint > org-pcomplete pcomplete org-list org-faces org-entities org-version > ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat org-macs > org-loaddefs format-spec cal-menu calendar cal-loaddefs time-date > dap-mouse dap-ui lsp-treemacs lsp-treemacs-themes treemacs > treemacs-header-line treemacs-compatibility treemacs-mode > treemacs-interface treemacs-extensions treemacs-mouse-interface > treemacs-tags treemacs-persistence treemacs-filewatch-mode > treemacs-follow-mode treemacs-rendering treemacs-async > treemacs-workspaces treemacs-dom treemacs-visuals > treemacs-fringe-indicator treemacs-scope pulse treemacs-faces > treemacs-icons treemacs-themes treemacs-core-utils pfuture > treemacs-logging treemacs-customization treemacs-macros gdb-mi gud bui > bui-list bui-info bui-entry bui-core bui-history bui-button bui-utils > cus-edit pp cus-start cus-load lsp-lens dap-mode dap-launch dap-overlays > lsp-mode lsp-protocol spinner network-stream puny nsm rmc > smartparens-markdown markdown-mode noutline outline inline imenu ht ewoc > epg epg-config yasnippet vc-git diff-mode vc-dispatcher ws-butler > whitespace rot13 disp-table protobuf-mode smartparens-c cc-mode cc-fonts > cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs > tree-sitter tree-sitter-load tree-sitter-cli tsc tsc-dyn tsc-dyn-get > dired-aux tsc-obsolete gumshoe mini-frame which-key selected move-text > smartparens-config smartparens-text smartparens undo-tree diff so-long > all-the-icons-ivy all-the-icons-ivy-rich ivy-rich counsel-projectile > projectile lisp-mnt grep ibuffer-vc ibuf-ext ibuffer ibuffer-loaddefs > thingatpt counsel xdg xref project compile text-property-search comint > swiper ivy delsel ivy-faces ivy-overlay colir color server saveplace > dired dired-loaddefs osx-trash git-gutter-fringe fringe-helper > git-gutter autorevert filenotify time desktop frameset eros > display-line-numbers hl-line highlight-numbers parent-mode paren > dtrt-indent company-box company-box-doc frame-local company-box-icons > company-yasnippet company-capf company flycheck-posframe posframe > hideshow recentf tree-widget wid-edit init core-misc core-plantuml > core-elisp core-org core-php core-markdown core-javascript core-go > core-secrets core-ebook core-shell core-tools calc-aent calc-prog > calc-ext calc calc-loaddefs calc-macs exec-path-from-shell core-vc > core-tramp core-dired core-session core-debug core-project ibuf-macs > core-navigation hydra ring lv core-checker flycheck ansi-color find-func > core-completion core-editing cap-words superword subword pcase > core-window +popup core-ux advice core-ui doom-dashboard derived > doom-modeline doom-modeline-segments doom-modeline-env > doom-modeline-core comp comp-cstr warnings shrink-path f s all-the-icons > all-the-icons-faces data-material data-weathericons data-octicons > data-fileicons data-faicons data-alltheicons dash doom-themes-ext-org > doom-themes-ext-treemacs doom-one-light-theme solaire-mode face-remap > doom-themes doom-themes-base cl-extra help-mode core-util use-package > use-package-ensure use-package-delight use-package-diminish > use-package-bind-key bind-key easy-mmode use-package-core finder-inf rx > edmacro kmacro w3m-load info package browse-url url url-proxy > url-privacy url-expand url-methods url-history url-cookie url-domsuf > url-util mailcap url-handlers url-parse auth-source cl-seq eieio > eieio-core cl-macs eieio-loaddefs password-cache json subr-x map > url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib > iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks > lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util > term/common-win tool-bar dnd fontset image regexp-opt fringe > tabulated-list replace newcomment text-mode elisp-mode lisp-mode > prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu > timer select scroll-bar mouse jit-lock font-lock syntax font-core > term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang > misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms > cp51932 hebrew greek romanian slovak czech european ethiopic indian > cyrillic chinese composite charscript charprop case-table epa-hook > jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button > loaddefs faces cus-face macroexp files window text-properties overlay > sha1 md5 base64 format env code-pages mule custom widget > hashtable-print-readable backquote threads xwidget-internal kqueue cocoa > ns lcms2 multi-tty make-network-process native-compile emacs) > > Memory information: > ((conses 16 5681850 755118) > (symbols 48 140725 0) > (strings 32 851093 57331) > (string-bytes 1 29748886) > (vectors 16 393667) > (vector-slots 8 7190110 587972) > (floats 8 18681 3660) > (intervals 56 571161 8020) > (buffers 992 271)) > > > -- > Regards, > Umar Ahmad > -- Regards, Umar Ahmad --000000000000f9808705cdf21a0e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Actually, This only happens when I d= o a `setq-default`
Setting it only for a single buffer with a `se= tq-local` seems to not cause the problem described above
On Sun, O= ct 10, 2021 at 1:23 AM Umar Ahmad <ahmad.umar2008@yahoo.in> wrote:

Mouse c= licks on some text in an emacs window does not correctly position
the po= int when the line-height is set to some value and the text is
scaled to = become larger

Steps to reproduce with emacs -Q
- Open a new buffe= r (C-x b *test-buffer RET)
- Yank few lines of text from somewhere
- = Eval (M-:) the following:
=C2=A0 `(setq-default default-text-properties = '(line-height 1.1))`
- Scale text to make it larger (C-x C-=3D =3D = =3D =3D)
- Click on any line to place the point at that location.
- P= oint is placed few lines further below the click position

- Reset th= e line-height to nil by evaluating:
=C2=A0 `(setq-default default-text-p= roperties '(line-height nil))`
- Click on any line to place point at= that location.
- Point is placed correctly



In GNU Emacs = 28.0.50 (build 1, x86_64-apple-darwin20.5.0, NS appkit-2022.50 Version 11.4= (Build 20F71))
=C2=A0of 2021-07-31 built on Umars-MacBook-Pro.local
= Windowing system distributor 'Apple', version 10.3.2022
System D= escription: =C2=A0macOS 11.5.2

Configured using:
=C2=A0'confi= gure --disable-dependency-tracking --disable-silent-rules
=C2=A0--enable= -locallisppath=3D/usr/local/share/emacs/site-lisp
=C2=A0--infodir=3D/usr= /local/Cellar/emacs-plus@28/28.0.50/share/info/emacs
=C2=A0--prefix=3D/u= sr/local/Cellar/emacs-plus@28/28.0.50 --with-xml2
=C2=A0--with-gnutls --= with-native-compilation --without-dbus
=C2=A0--with-imagemagick --with-m= odules --with-rsvg --with-xwidgets --with-ns
=C2=A0--disable-ns-self-con= tained 'CFLAGS=3D-I/usr/local/opt/gcc/include
=C2=A0-I/usr/local/opt= /libgccjit/include -I/usr/local/opt/gmp/include
=C2=A0-I/usr/local/opt/j= peg/include' 'LDFLAGS=3D-L/usr/local/lib/gcc/11
=C2=A0-I/usr/loc= al/opt/gcc/include -I/usr/local/opt/libgccjit/include
=C2=A0-I/usr/local= /opt/gmp/include -I/usr/local/opt/jpeg/include''

Configured = features:
ACL GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MO= DULES
NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF
TOOL= KIT_SCROLL_BARS XIM XWIDGETS ZLIB

Important settings:
=C2=A0 valu= e of $LC_ALL: en_US.UTF-8
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 l= ocale-coding-system: utf-8-unix

Major mode: ELisp/d

Minor mod= es in effect:
=C2=A0 flyspell-lazy-mode: t
=C2=A0 winner-mode: t
= =C2=A0 global-git-commit-mode: t
=C2=A0 shell-dirtrack-mode: t
=C2=A0= org-roam-db-autosync-mode: t
=C2=A0 auto-insert-mode: t
=C2=A0 org-w= ild-notifier-mode: t
=C2=A0 pdf-occur-global-minor-mode: t
=C2=A0 dap= -tooltip-mode: t
=C2=A0 dap-ui-many-windows-mode: t
=C2=A0 dap-ui-con= trols-mode: t
=C2=A0 dap-ui-mode: t
=C2=A0 treemacs-filewatch-mode: t=
=C2=A0 treemacs-follow-mode: t
=C2=A0 treemacs-git-mode: t
=C2=A0= treemacs-fringe-indicator-mode: t
=C2=A0 dap-auto-configure-mode: t
= =C2=A0 dap-mode: t
=C2=A0 yas-global-mode: t
=C2=A0 yas-minor-mode: t=
=C2=A0 ws-butler-mode: t
=C2=A0 whitespace-mode: t
=C2=A0 global-= gumshoe-mode: t
=C2=A0 mini-frame-mode: t
=C2=A0 which-key-mode: t=C2=A0 selected-global-mode: t
=C2=A0 selected-minor-mode: t
=C2=A0 = smartparens-global-mode: t
=C2=A0 smartparens-mode: t
=C2=A0 global-u= ndo-tree-mode: t
=C2=A0 undo-tree-mode: t
=C2=A0 global-so-long-mode:= t
=C2=A0 all-the-icons-ivy-rich-mode: t
=C2=A0 ivy-rich-mode: t
= =C2=A0 projectile-mode: t
=C2=A0 ivy-mode: t
=C2=A0 save-place-mode: = t
=C2=A0 git-gutter-mode: t
=C2=A0 global-auto-revert-mode: t
=C2= =A0 eros-mode: t
=C2=A0 display-line-numbers-mode: t
=C2=A0 hl-line-m= ode: t
=C2=A0 highlight-numbers-mode: t
=C2=A0 show-paren-mode: t
= =C2=A0 dtrt-indent-mode: t
=C2=A0 company-box-mode: t
=C2=A0 company-= mode: t
=C2=A0 flycheck-posframe-mode: t
=C2=A0 recentf-mode: t
= =C2=A0 flycheck-mode: t
=C2=A0 global-subword-mode: t
=C2=A0 subword-= mode: t
=C2=A0 +popup-mode: t
=C2=A0 doom-modeline-mode: t
=C2=A0 = override-global-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mo= de: t
=C2=A0 eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 m= ouse-wheel-mode: t
=C2=A0 tab-bar-mode: t
=C2=A0 file-name-shadow-mod= e: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2= =A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 au= to-compression-mode: t
=C2=A0 size-indication-mode: t
=C2=A0 column-n= umber-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: = t
=C2=A0 hs-minor-mode: t

Load-path shadows:
/Users/umar/.conf= ig/emacs/elpa/magit-20210916.1754/magit-section-pkg hides /Users/umar/.conf= ig/emacs/elpa/magit-section-20210829.1849/magit-section-pkg
/Users/umar/= .config/emacs/elpa/protobuf-mode-20200619.1742/protobuf-mode hides /usr/loc= al/share/emacs/site-lisp/protobuf/protobuf-mode
/Users/umar/.config/emac= s/elpa/transient-20210819.2118/transient hides /usr/local/Cellar/emacs-plus= @28/28.0.50/share/emacs/28.0.50/lisp/transient

Features:
(shadow = sort emacsbug dap-variables dap-hydra nano-light-theme
nano-theme nano-m= odeline autoload tar-mode arc-mode archive-mode
mm-archive tetris gamegr= id two-column git-rebase org-gcal persist
org-generic-id request-deferre= d deferred htmlize novice rainbow-mode
wgrep gorepl-mode bongo lastfm-su= bmit calc-frac eieio-opt shortdoc
flyspell-lazy flyspell forge-list forg= e-commands forge-semi
forge-bitbucket buck forge-gogs gogs forge-gitea g= tea forge-gitlab glab
forge-github ghub-graphql treepy gsexp ghub forge-= notify forge-revnote
forge-pullreq forge-issue forge-topic yaml forge-po= st forge-repo forge
forge-core forge-db closql pcmpl-unix pcmpl-gnu osx-= dictionary
hippie-exp winner calc-math edraw-color-picker edraw-color ed= raw-path
edraw-dom-svg edraw-math edraw-util debug saveplace-pdf-view pd= f-sync
pdf-outline pdf-links pdf-history browse-at-remote
rectangular= -region-mode mc-hide-unmatched-lines-mode mc-mark-more
mc-cycle-cursors = multiple-cursors-core counsel-jq dumb-jump mail-extr
artist picture repo= rter rect bug-reference magit-extras magit-delta
xterm-color magit-bookm= ark magit-submodule magit-obsolete magit-blame
magit-stash magit-reflog = magit-bisect magit-push magit-pull magit-fetch
magit-clone magit-remote = magit-commit magit-sequence magit-notes
magit-worktree magit-tag magit-m= erge magit-branch magit-reset
magit-files magit-refs magit-status magit = magit-repos magit-apply
magit-wip magit-log which-func magit-diff git-co= mmit log-edit message
rfc822 mml mml-sec epa mm-decode mm-bodies mm-enco= de mailabbrev
gmm-utils add-log magit-core magit-autorevert magit-margin=
magit-transient magit-process with-editor magit-mode magit-git
magit= -utils esxml nov esxml-query smerge-mode cl-print doom-one-theme
olivett= i popup expand-region subword-mode-expansions
text-mode-expansions cc-mo= de-expansions the-org-mode-expansions
js-mode-expansions html-mode-expan= sions css-mode-expansions
er-basic-expansions expand-region-core expand-= region-custom helpful
trace edebug backtrace info-look elisp-refs help-f= ns radix-tree ivy-xref
smart-jump-lisp-mode smart-jump-go-mode smart-jum= p-elisp-mode
smart-jump-cc-mode smart-jump shr-color url-cache zoom repe= at
+projectile-find-file vterm docker-tramp tramp-cache tramp
tramp-l= oaddefs trampver tramp-integration files-x tramp-compat ls-lisp
vterm-mo= dule term/xterm xterm shell-pop term shell ehelp format-all
language-id = inheritenv org-clock calibredb-ivy calibredb-utils
calibredb-annotation = calibredb-transient calibredb-show calibredb-faces
calibredb-search cali= bredb-core sendmail org-archive org-ql-search
org-ql-view transient ov c= rm org-super-agenda org-ql peg ts anki-editor
request mailheader ox-odt = rng-loc rng-uri rng-parse rng-match rng-dt
rng-util rng-pttrn nxml-parse= nxml-ns nxml-enc xmltok nxml-util ox-latex
ox-icalendar ox-html table o= x-ascii ox-publish ox tabify timezone
cal-move parse-time hide-mode-line= org-roam-protocol org-protocol
org-roam-migrate org-roam-mode org-roam-= capture org-roam-node
org-roam-db org-roam-utils org-roam-compat org-roa= m org-capture org-id
emacsql-sqlite url-http url-auth mail-parse rfc2231= url-gw emacsql
emacsql-compiler magit-section misearch multi-isearch ca= lc-arith cal-dst
calc-misc calc-forms calccomp calc-units calc-alg calc-= menu counsel-calc
autoinsert org-wild-notifier async alert log4e notific= ations dbus gntp
org-timeline ace-window avy diary-lib diary-loaddefs ca= l-iso
org-duration cursor-sensor keepass-mode makefile-executor make-mod= e
conf-mode flycheck-plantuml plantuml-mode sh-script executable eimpmhtml-mode css-mode smie eww url-queue shr kinsoku svg xml mm-url gnus
= nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums
mail-= utils mm-util mail-prsvr smartparens-html sgml-mode diredfl
all-the-icon= s-dired vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs
vc-rcs dired-fi= lter dired-hacks-utils dired-x diff-hl-dired diff-hl
log-view pcvs-util = vc-dir vc flycheck-golangci-lint dap-go go-mode
find-file ffap etags fil= eloop terraform-mode hcl-mode sql
lsp-diagnostics lsp-modeline lsp-ui ls= p-ui-flycheck lsp-ui-doc xwidget
goto-addr lsp-ui-imenu lsp-ui-peek lsp-= ui-sideline lsp-ui-util view
flycheck-phpstan phpstan dap-php dap-utils = php-mode speedbar ezimage
dframe php-face php php-project flymake-proc f= lymake company-dabbrev
org-superstar lsp-zig lsp-steep lsp-svelte lsp-sq= ls lsp-yaml lsp-xml
lsp-vimscript lsp-vhdl lsp-vetur lsp-html lsp-verilo= g lsp-vala lsp-v
lsp-terraform lsp-tex lsp-sorbet lsp-solargraph lsp-rus= t lsp-rf lsp-r
lsp-purescript lsp-pylsp lsp-pyls lsp-pwsh lsp-php lsp-pe= rl lsp-ocaml
lsp-nix lsp-nim lsp-markdown lsp-lua lsp-kotlin lsp-json ls= p-javascript
lsp-haxe lsp-groovy lsp-hack lsp-graphql lsp-go lsp-complet= ion
lsp-gdscript lsp-fsharp lsp-fortran lsp-eslint lsp-erlang lsp-elixir=
lsp-elm lsp-dockerfile lsp-dhall lsp-d lsp-css lsp-csharp gnutls
lsp= -crystal lsp-cmake lsp-clojure lsp-semantic-tokens lsp-clangd dom
lsp-be= ancount lsp-bash lsp-angular lsp-ada lsp-actionscript json-mode
json-ref= ormat json-snatcher smartparens-javascript js
org-fancy-priorities org-a= ppear org-pretty-table org-pdftools pdf-annot
facemenu pdf-occur tablist= tablist-filter semantic/wisent/comp
semantic/wisent semantic/wisent/wis= ent semantic/util-modes semantic/util
semantic semantic/tag semantic/lex= semantic/fw mode-local cedet
pdf-isearch let-alist pdf-misc pdf-tools p= df-view treemacs-bookmarks
bookmark jka-compr pdf-cache pdf-info tq pdf-= util pdf-macs image-mode
exif org-noter spell-fu ispell org-indent image= -file image-converter
org-element avl-tree generator org-habit org-agend= a org-refile ol-bibtex
bibtex iso8601 smartparens-org ob-plantuml org ob= ob-tangle ob-ref
ob-lob ob-table ob-exp org-macro org-footnote org-src = ob-comint
org-pcomplete pcomplete org-list org-faces org-entities org-ve= rsion
ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat org= -macs
org-loaddefs format-spec cal-menu calendar cal-loaddefs time-date<= br>dap-mouse dap-ui lsp-treemacs lsp-treemacs-themes treemacs
treemacs-h= eader-line treemacs-compatibility treemacs-mode
treemacs-interface treem= acs-extensions treemacs-mouse-interface
treemacs-tags treemacs-persisten= ce treemacs-filewatch-mode
treemacs-follow-mode treemacs-rendering treem= acs-async
treemacs-workspaces treemacs-dom treemacs-visuals
treemacs-= fringe-indicator treemacs-scope pulse treemacs-faces
treemacs-icons tree= macs-themes treemacs-core-utils pfuture
treemacs-logging treemacs-custom= ization treemacs-macros gdb-mi gud bui
bui-list bui-info bui-entry bui-c= ore bui-history bui-button bui-utils
cus-edit pp cus-start cus-load lsp-= lens dap-mode dap-launch dap-overlays
lsp-mode lsp-protocol spinner netw= ork-stream puny nsm rmc
smartparens-markdown markdown-mode noutline outl= ine inline imenu ht ewoc
epg epg-config yasnippet vc-git diff-mode vc-di= spatcher ws-butler
whitespace rot13 disp-table protobuf-mode smartparens= -c cc-mode cc-fonts
cc-guess cc-menus cc-cmds cc-styles cc-align cc-engi= ne cc-vars cc-defs
tree-sitter tree-sitter-load tree-sitter-cli tsc tsc-= dyn tsc-dyn-get
dired-aux tsc-obsolete gumshoe mini-frame which-key sele= cted move-text
smartparens-config smartparens-text smartparens undo-tree= diff so-long
all-the-icons-ivy all-the-icons-ivy-rich ivy-rich counsel-= projectile
projectile lisp-mnt grep ibuffer-vc ibuf-ext ibuffer ibuffer-= loaddefs
thingatpt counsel xdg xref project compile text-property-search= comint
swiper ivy delsel ivy-faces ivy-overlay colir color server savep= lace
dired dired-loaddefs osx-trash git-gutter-fringe fringe-helper
g= it-gutter autorevert filenotify time desktop frameset eros
display-line-= numbers hl-line highlight-numbers parent-mode paren
dtrt-indent company-= box company-box-doc frame-local company-box-icons
company-yasnippet comp= any-capf company flycheck-posframe posframe
hideshow recentf tree-widget= wid-edit init core-misc core-plantuml
core-elisp core-org core-php core= -markdown core-javascript core-go
core-secrets core-ebook core-shell cor= e-tools calc-aent calc-prog
calc-ext calc calc-loaddefs calc-macs exec-p= ath-from-shell core-vc
core-tramp core-dired core-session core-debug cor= e-project ibuf-macs
core-navigation hydra ring lv core-checker flycheck = ansi-color find-func
core-completion core-editing cap-words superword su= bword pcase
core-window +popup core-ux advice core-ui doom-dashboard der= ived
doom-modeline doom-modeline-segments doom-modeline-env
doom-mode= line-core comp comp-cstr warnings shrink-path f s all-the-icons
all-the-= icons-faces data-material data-weathericons data-octicons
data-fileicons= data-faicons data-alltheicons dash doom-themes-ext-org
doom-themes-ext-= treemacs doom-one-light-theme solaire-mode face-remap
doom-themes doom-t= hemes-base cl-extra help-mode core-util use-package
use-package-ensure u= se-package-delight use-package-diminish
use-package-bind-key bind-key ea= sy-mmode use-package-core finder-inf rx
edmacro kmacro w3m-load info pac= kage browse-url url url-proxy
url-privacy url-expand url-methods url-his= tory url-cookie url-domsuf
url-util mailcap url-handlers url-parse auth-= source cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache jso= n subr-x map
url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loa= ddefs cl-lib
iso-transl tooltip eldoc electric uniquify ediff-hook vc-ho= oks
lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-utilterm/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-= list replace newcomment text-mode elisp-mode lisp-mode
prog-mode registe= r page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll= -bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame min= ibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan= thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romania= n slovak czech european ethiopic indian
cyrillic chinese composite chars= cript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obar= ray cl-preloaded nadvice button
loaddefs faces cus-face macroexp files w= indow text-properties overlay
sha1 md5 base64 format env code-pages mule= custom widget
hashtable-print-readable backquote threads xwidget-intern= al kqueue cocoa
ns lcms2 multi-tty make-network-process native-compile e= macs)

Memory information:
((conses 16 5681850 755118)
=C2=A0(s= ymbols 48 140725 0)
=C2=A0(strings 32 851093 57331)
=C2=A0(string-byt= es 1 29748886)
=C2=A0(vectors 16 393667)
=C2=A0(vector-slots 8 719011= 0 587972)
=C2=A0(floats 8 18681 3660)
=C2=A0(intervals 56 571161 8020= )
=C2=A0(buffers 992 271))


--
Regards,
Umar Ahmad


--
Regards,
Umar Ahmad
--000000000000f9808705cdf21a0e--