Re: doc: Spelling of LAMBDA in digraph table
On Tue, Mar 21, 2023 at 10:37 AM Max Mahlke wrote: > > Dear all, > > in runtime/doc/digraph.txt, the greek letter lambda is spelt LAMDA. I > was looking for it under the accepted spelling LAMBDA, though I am aware > that some people prefer the LAMDA spelling. I see that the vim source > makes frequent use of both spellings. > > I would therefore suggest changing > > runtime/doc/digraph.txt > 550:Λ L* 039B0923GREEK CAPITAL LETTER LAMDA > 581:λ l* 03BB0955GREEK SMALL LETTER LAMDA > > to > > runtime/doc/digraph.txt > 550:Λ L* 039B0923GREEK CAPITAL LETTER LAMDA/LAMBDA > 581:λ l* 03BB0955GREEK SMALL LETTER LAMDA/LAMBDA > > I would gladly submit a PR for this change on GitHub. > > Apologies if this has been discussed before, I have not found any > mention in the mailing list archives or on the GitHub repository. > > Kind regards > Max Mahlke tl·dr : See last paragraph but one, below. When I was in secondary school, in the Latin-Greek section of a school where instruction was given in French, I learnt to call this letter "lambda". However the official, unchangeable names as shown in the "Greek and Coptic" Unicode reference file http://www.unicode.org/charts/PDF/U0370.pdf are GREEK CAPITAL LETTER LAMDA and GREEK SMALL LETTER LAMDA respectively. The small letter, but not the capital, has under its official name there the commentary "= lambda". The names in all-caps used in Vim, and in particular by the optional Unicode plugin by Christian Brabandt, but also at lines 179sqq of the standard digraph.txt helpfile, are the official names published by the Unicode Consortium. We shouldn't change them at will, even though I too would use the name "lambda" with b for the Greek letter Λλ and even though the English Wiktionary entry for "lamda" https://en.wiktionary.org/wiki/lamda gives as definition "Misspelling of *lambda*" with a Usage note: "This spelling appears in the Unicode standard (U+0039B, U+003BB)." So it appears that the use of the word LAMDA in those names is a misspelling which was taken up in an official standard which cannot ever be modified (because the rules of the Unicode standard include never modifying the official name of a codepoint once it has been defined, not even to correct an error). A deplorable fact, to be sure, but I think that we have to live with that misspelled all-caps unchangeable official name. All hope is not lost, however. One thing we _could_ do, if Bram agrees, is define help tags *Lambda* and *lambda* right where these "official misspellings" are found in the digraph.txt helpfile. Then ":help Lambda" and ":help lambda" would bring us to the appropriate digraphs. Another thing which any Vim user should do who, like me, frequently uses Greek letters absent from his/her keyboard, is commit to memory the fact that digraphs for Greek letters are characterized by a Latin letter followed by an asterisk: so ^K a * gives the letter alpha, ^K b * gives the letter beta, ^K L * gives upper-case lambda, etc., with the particularity that ^K s * is a "normal" sigma while the "final" sigma is ^K * s. In addition, typing :dig! in Normal mode displays the list of digraphs with section headers. You'll find the Greek alphabet as part of the "Greek and Coptic" section. Best regards, Tony. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAJkCKXvMejktyYxPK4v0kvJZ9CrSMPcnNz0M6ToK5L9BVMuFng%40mail.gmail.com.
Patch 9.0.1423
Patch 9.0.1423 Problem:WebAssembly Interface Type files are not recognized. Solution: Add a pattern for WIT files. (Amaan Qureshi, closes #12173) Files: runtime/filetype.vim, src/testdir/test_filetype.vim *** ../vim-9.0.1422/runtime/filetype.vim2023-03-21 21:31:35.580834523 + --- runtime/filetype.vim2023-03-21 21:57:59.776433757 + *** *** 2345,2350 --- 2345,2353 " WebAssembly au BufNewFile,BufRead *.wast,*.watsetf wast + " WebAssembly Interface Type (WIT) + au BufNewFile,BufRead *.wit setf wit + " Webmacro au BufNewFile,BufRead *.wmsetf webmacro *** ../vim-9.0.1422/src/testdir/test_filetype.vim 2023-03-21 21:31:35.584834519 + --- src/testdir/test_filetype.vim 2023-03-21 21:57:59.776433757 + *** *** 663,668 --- 663,669 \ 'wget': ['.wgetrc', 'wgetrc'], \ 'wget2': ['.wget2rc', 'wget2rc'], \ 'winbatch': ['file.wbt'], + \ 'wit': ['file.wit'], \ 'wml': ['file.wml'], \ 'wsh': ['file.wsf', 'file.wsc'], \ 'wsml': ['file.wsml'], *** ../vim-9.0.1422/src/version.c 2023-03-21 21:31:35.584834519 + --- src/version.c 2023-03-21 21:58:43.944456342 + *** *** 697,698 --- 697,700 { /* Add new patch number below this line */ + /**/ + 1423, /**/ -- ARTHUR: Who are you? TALL KNIGHT: We are the Knights Who Say "Ni"! BEDEVERE:No! Not the Knights Who Say "Ni"! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\help me help AIDS victims -- http://ICCF-Holland.org/// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20230321220357.2E9581C06E4%40moolenaar.net.
Patch 9.0.1422
Patch 9.0.1422 Problem:Sage files are not recognized. Solution: Add a pattern for Sage files. (Amaan Qureshi, closes #12176) Files: runtime/filetype.vim, src/testdir/test_filetype.vim *** ../vim-9.0.1421/runtime/filetype.vim2023-03-21 21:28:03.229212611 + --- runtime/filetype.vim2023-03-21 21:31:14.168865409 + *** *** 1811,1816 --- 1811,1819 " S-lang (or shader language, or SmallLisp) au BufNewFile,BufRead *.slsetf slang + " Sage + au BufNewFile,BufRead *.sage setf sage + " Samba config au BufNewFile,BufRead smb.confsetf samba *** ../vim-9.0.1421/src/testdir/test_filetype.vim 2023-03-21 21:28:03.229212611 + --- src/testdir/test_filetype.vim 2023-03-21 21:29:56.976989176 + *** *** 540,545 --- 540,546 \ 'skill': ['file.il', 'file.ils', 'file.cdf'], \ 'cdc': ['file.cdc'], \ 'slang': ['file.sl'], + \ 'sage': ['file.sage'], \ 'slice': ['file.ice'], \ 'slpconf': ['/etc/slp.conf', 'any/etc/slp.conf'], \ 'slpreg': ['/etc/slp.reg', 'any/etc/slp.reg'], *** ../vim-9.0.1421/src/version.c 2023-03-21 21:28:03.233212600 + --- src/version.c 2023-03-21 21:30:26.660939158 + *** *** 697,698 --- 697,700 { /* Add new patch number below this line */ + /**/ + 1422, /**/ -- Back up my hard drive? I can't find the reverse switch! /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\help me help AIDS victims -- http://ICCF-Holland.org/// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20230321213223.AAC551C0656%40moolenaar.net.
Patch 9.0.1421
Patch 9.0.1421 Problem:Nu files are not recognized. Solution: Add a pattern for Nu files. (Amaan Qureshi, closes #12172) Files: runtime/filetype.vim, src/testdir/test_filetype.vim *** ../vim-9.0.1420/runtime/filetype.vim2023-03-21 19:57:29.617747748 + --- runtime/filetype.vim2023-03-21 21:25:05.157687821 + *** *** 1399,1404 --- 1399,1407 " NSIS au BufNewFile,BufRead *.nsi,*.nsh setf nsis + " Nu + au BufNewFile,BufRead {env,config}.nu setf nu + " Oblivion Language and Oblivion Script Extender au BufNewFile,BufRead *.obl,*.obse,*.oblivion,*.obscript setf obse *** ../vim-9.0.1420/src/testdir/test_filetype.vim 2023-03-21 19:57:29.617747748 + --- src/testdir/test_filetype.vim 2023-03-21 21:25:05.157687821 + *** *** 412,417 --- 412,418 \ 'nqc': ['file.nqc'], \ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'], \ 'nsis': ['file.nsi', 'file.nsh'], + \ 'nu': ['env.nu', 'config.nu'], \ 'obj': ['file.obj'], \ 'obse': ['file.obl', 'file.obse', 'file.oblivion', 'file.obscript'], \ 'ocaml': ['file.ml', 'file.mli', 'file.mll', 'file.mly', '.ocamlinit', 'file.mlt', 'file.mlp', 'file.mlip', 'file.mli.cppo', 'file.ml.cppo'], *** ../vim-9.0.1420/src/version.c 2023-03-21 20:04:54.829967258 + --- src/version.c 2023-03-21 21:26:11.505490130 + *** *** 697,698 --- 697,700 { /* Add new patch number below this line */ + /**/ + 1421, /**/ -- An extraordinary TALL KNIGHT in all black (possibly John with Mike on his shoulders) walks out from the dark trees. He is extremely fierce and gruesome countenance. He walks towards KING ARTHUR and PATSY, who are wazzing like mad. (Salopian slang, meaning very scared. almost to the point of wetting oneself, e.g. before an important football match or prior to a postering. Salopian slang meaning a beating by the school praeposters. Sorry about the Salopian slant to this stage direction - Ed.) "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\help me help AIDS victims -- http://ICCF-Holland.org/// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20230321212841.37B5C1C0656%40moolenaar.net.
Re: Patch 9.0.1418
John Marriott wrote: > On 21-Mar-2023 04:31, Bram Moolenaar wrote: > > Patch 9.0.1418 > > Problem:The included xdiff code is a bit outdated. > > Solution: Sync with the latest git xdiff code. (Yee Cheng Chin, > > closes #12181) > > Files: src/xdiff/README.txt, src/xdiff/xdiff.h, src/xdiff/xdiffi.c, > > src/xdiff/xdiffi.h, src/xdiff/xemit.c, src/xdiff/xhistogram.c, > > src/xdiff/xmacros.h, src/xdiff/xpatience.c, > > src/xdiff/xprepare.c, > > src/xdiff/xutils.c, src/xdiff/xutils.h > > > After this patch, my HPUX build fails with this error: > > cc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -D_REENTRANT -o > objects/xdiffi.o xdiff/xdiffi.c > cc: "xdiff/xdiffi.c", line 340: error 1588: "SIZE_MAX" undefined. > cc: "xdiff/xdiffi.c", line 340: error 1552: First expression of ?: must > be arithmetic. > *** Error exit code 1 > > Stop. > *** Error exit code 1 > > > The attached patch fixes it. Thanks, I'll include it. -- Experience is what you get when you don't get what you want. /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\help me help AIDS victims -- http://ICCF-Holland.org/// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20230321200528.938841C0656%40moolenaar.net.
Patch 9.0.1420
Patch 9.0.1420 (after 9.0.1418) Problem:Build failure because SIZE_MAX is not defined. Solution: Define SIZE_MAX when missing. (John Marriott) Files: src/xdiff/xmacros.h *** ../vim-9.0.1419/src/xdiff/xmacros.h 2023-03-20 17:30:41.566898322 + --- src/xdiff/xmacros.h 2023-03-21 20:02:37.365897293 + *** *** 24,30 #define XMACROS_H ! #define XDL_MIN(a, b) ((a) < (b) ? (a): (b)) #define XDL_MAX(a, b) ((a) > (b) ? (a): (b)) --- 24,34 #define XMACROS_H ! #ifdef __hpux ! # ifndef SIZE_MAX ! # define SIZE_MAX ((size_t)(-1)) ! # endif ! #endif #define XDL_MIN(a, b) ((a) < (b) ? (a): (b)) #define XDL_MAX(a, b) ((a) > (b) ? (a): (b)) *** ../vim-9.0.1419/src/version.c 2023-03-21 19:57:29.617747748 + --- src/version.c 2023-03-21 20:03:54.921936598 + *** *** 697,698 --- 697,700 { /* Add new patch number below this line */ + /**/ + 1420, /**/ -- "My particular problem is with registry entries, which seem to just accumulate like plastic coffee cups..." -- Paul Moore /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\help me help AIDS victims -- http://ICCF-Holland.org/// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20230321200528.96CAE1C01AF%40moolenaar.net.
Patch 9.0.1419
Patch 9.0.1419 Problem:Lean files are not recognized. Solution: Add a pattern for Lean files. (Amaan Qureshi, closes #12177) Files: runtime/filetype.vim, src/testdir/test_filetype.vim *** ../vim-9.0.1418/runtime/filetype.vim2023-03-19 21:57:03.665960580 + --- runtime/filetype.vim2023-03-21 19:55:29.773693341 + *** *** 1112,1117 --- 1112,1120 " Ld loader au BufNewFile,BufRead *.ldsetf ld + " Lean + au BufNewFile,BufRead *.lean setf lean + " Ledger au BufRead,BufNewFile *.ldg,*.ledger,*.journalsetf ledger *** ../vim-9.0.1418/src/testdir/test_filetype.vim 2023-03-19 21:57:03.665960580 + --- src/testdir/test_filetype.vim 2023-03-21 19:55:29.773693341 + *** *** 320,325 --- 320,326 \ 'latte': ['file.latte', 'file.lte'], \ 'ld': ['file.ld'], \ 'ldif': ['file.ldif'], + \ 'lean': ['file.lean'], \ 'ledger': ['file.ldg', 'file.ledger', 'file.journal'], \ 'less': ['file.less'], \ 'lex': ['file.lex', 'file.l', 'file.lxx', 'file.l++'], *** ../vim-9.0.1418/src/version.c 2023-03-20 17:30:41.566898322 + --- src/version.c 2023-03-21 19:56:13.545712896 + *** *** 697,698 --- 697,700 { /* Add new patch number below this line */ + /**/ + 1419, /**/ -- TALL KNIGHT OF NI: Ni! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\help me help AIDS victims -- http://ICCF-Holland.org/// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20230321195807.EC4971C1541%40moolenaar.net.
Re: Patch 9.0.1418
On 21-Mar-2023 04:31, Bram Moolenaar wrote: Patch 9.0.1418 Problem:The included xdiff code is a bit outdated. Solution: Sync with the latest git xdiff code. (Yee Cheng Chin, closes #12181) Files: src/xdiff/README.txt, src/xdiff/xdiff.h, src/xdiff/xdiffi.c, src/xdiff/xdiffi.h, src/xdiff/xemit.c, src/xdiff/xhistogram.c, src/xdiff/xmacros.h, src/xdiff/xpatience.c, src/xdiff/xprepare.c, src/xdiff/xutils.c, src/xdiff/xutils.h After this patch, my HPUX build fails with this error: cc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -D_REENTRANT -o objects/xdiffi.o xdiff/xdiffi.c cc: "xdiff/xdiffi.c", line 340: error 1588: "SIZE_MAX" undefined. cc: "xdiff/xdiffi.c", line 340: error 1552: First expression of ?: must be arithmetic. *** Error exit code 1 Stop. *** Error exit code 1 The attached patch fixes it. Cheers John -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/a5832fbb-6393-c4c5-33d0-7e45904a5aee%40internode.on.net. --- xmacros.h.orig 2023-03-21 05:55:55.215756200 +1100 +++ xmacros.h 2023-03-22 05:46:58.549399200 +1100 @@ -23,8 +23,11 @@ #if !defined(XMACROS_H) #define XMACROS_H - - +#ifdef __hpux +#ifndef SIZE_MAX +#define SIZE_MAX ((size_t)(-1)) +#endif +#endif #define XDL_MIN(a, b) ((a) < (b) ? (a): (b)) #define XDL_MAX(a, b) ((a) > (b) ? (a): (b))
Re: vim9 - vim 81 patch 271 ":'<,'>s/P" cancels visual mode when P is pressed
On Sa, 18 Mär 2023, Kenneth Freidank wrote: > Latest build of vim9 visual mode cancels when attempting to substitute text in > the visual range selected ":'<,'>s/P". > > Steps to repeat: > > 1. Use visual mode to select some text (press 'v' and move the cursor with > the > arrow keys and highlight some text). > 2. Press the colon key to get the range command ":'<,'>". > 3. Add the substitute key sequence "s/". > 4. As soon as you type any character after the forward slash, for example the > 'P', the visual highlighting is cleared and substitution on the visual > range is no longer possible. Complete key sequence looks like ":'<,'>s/P" > > I traced the bug to v8.1.0271 which also scrambles the screen some when the > 'P' > is pressed. The prior commit, v8.1.0270 worked fine. > > • git checkout v8.1.0270 works fine > • git checkout v8.1.0271 breaks If I understand you correctly, you are just seeing the result of 'incsearch' being applied. However, the marks '< and '> are still valid and vim will replace in the correct marked region. It's just that you do no longer see it highlighted, because Vim tries to (helpfully) show you matches of your pattern. You can disable this behaviour by setting `:set noincsearch` and then Vim won't clear the highlighting anymore. Best, Christian -- Die Religion hat der Liebe einen großen Dienst erwiesen, indem sie sie zur Sünde erklärte. -- Anatole France -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/ZBl8QwihKGgXwhWy%40256bit.org.
doc: Spelling of LAMBDA in digraph table
Dear all, in runtime/doc/digraph.txt, the greek letter lambda is spelt LAMDA. I was looking for it under the accepted spelling LAMBDA, though I am aware that some people prefer the LAMDA spelling. I see that the vim source makes frequent use of both spellings. I would therefore suggest changing runtime/doc/digraph.txt 550:Λ L* 039B0923GREEK CAPITAL LETTER LAMDA 581:λ l* 03BB0955GREEK SMALL LETTER LAMDA to runtime/doc/digraph.txt 550:Λ L* 039B0923GREEK CAPITAL LETTER LAMDA/LAMBDA 581:λ l* 03BB0955GREEK SMALL LETTER LAMDA/LAMBDA I would gladly submit a PR for this change on GitHub. Apologies if this has been discussed before, I have not found any mention in the mailing list archives or on the GitHub repository. Kind regards Max Mahlke -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20230320103657.gclxywptuphqzbnd%40ias-1812.ias.u-psud.fr.