Benno Schulenberg
b18bcbbe9f
tweaks: use for git the more faithful "less -x1,5" suggested by Brand
2017-12-30 16:38:19 +01:00
Benno Schulenberg
920730f1aa
tweaks: use spaces for alignment also in the THANKS file
2017-12-30 16:34:12 +01:00
Benno Schulenberg
9506b51101
docs: say thanks to some fairly recent translators, and rename one
2017-12-30 16:27:58 +01:00
Benno Schulenberg
918d0e71ab
docs: mention that the source code is best viewed with a tab size of 4
2017-12-30 11:47:22 +01:00
Benno Schulenberg
484a199175
tweaks: convert the indentation of the NEWS file too
...
To keep the blocks of text more-or-less aligned.
2017-12-30 11:31:49 +01:00
Benno Schulenberg
17429d7f38
tweaks: fix some whitespace errors, and convert alignment tabs to spaces
2017-12-29 21:35:14 +01:00
Benno Schulenberg
87206c0607
tweaks: convert the indentation to use only tabs
...
Each leading tab is converted to two tabs, and any leading four spaces
is converted to one tab. The intended tab size (for keeping most lines
within 80 columns) is now four.
2017-12-29 20:06:50 +01:00
Benno Schulenberg
b574f73e60
tweaks: add a separate function that actually wipes the status bar
2017-12-29 17:40:41 +01:00
Benno Schulenberg
eac90c3eff
prompt: blank the bar when a "continue?" is answered with No or ^C
...
This fixes https://savannah.gnu.org/bugs/?52755 .
Reported-by: Brand Huntsman <alpha@qzx.com>
2017-12-29 17:01:15 +01:00
Benno Schulenberg
440a128d25
indenting: keep affecting last line of marked region if it was at first
...
When unindenting/uncommenting affected the bottom line of the marked
region, keep affecting this line also during subsequent consecutive
indenting/commenting.
This fixes https://savannah.gnu.org/bugs/?52718 .
2017-12-29 16:52:17 +01:00
Tom Levy
4f2b01c7e5
syntax: lua: correct the word boundaries on standard library functions
...
Functions such as "io.close" should only be highlighted when the
package name ("io") is a word by itself, otherwise code such as
"fooio.close" gets unexpected partial highlighting.
Signed-off-by: Tom Levy <tomlevy93@gmail.com>
2017-12-28 21:46:26 +01:00
Benno Schulenberg
12073001c2
tweaks: condense, reword, and rewrap a bunch of comments
2017-12-26 22:14:25 +01:00
Benno Schulenberg
4c20135749
help: swap the order of the Complete and Comment functions
...
So that Commenting comes closer to the somewhat related Indenting
and Unindenting functions.
2017-12-26 21:36:29 +01:00
Benno Schulenberg
f9ebf038e0
tweaks: slightly rename four functions, for aptness and variety
2017-12-26 14:15:49 +01:00
David Lawrence Ramsey
62ebd93579
tweaks: use printf's z modifier for (s)size_t, instead of casting
2017-12-26 14:11:18 +01:00
Benno Schulenberg
a10fdc3fb1
help: show that "Tab" will indent, just like "Sh-Tab" will unindent
...
Also, make the descriptions for indenting/unindenting more precise.
2017-12-26 13:46:34 +01:00
Benno Schulenberg
8581e702d6
tweaks: move some frequently-used keystrokes to the top of the list
...
So they will be found quicker.
Also fold two assignments into one.
2017-12-26 13:31:50 +01:00
Benno Schulenberg
bdbd5ff0e7
syntax: javascript: add some comments, and color explicit numbers too
2017-12-25 16:03:05 +01:00
Benno Schulenberg
f769465284
syntax: javascript: add some keywords, and sort them more logically
...
Also, remove angle-bracketed "strings" -- they don't exist.
2017-12-25 15:40:05 +01:00
Benno Schulenberg
1b5b52d2e4
syntax: javascript: color strings differently from major keywords
...
Also, remove the coloring of special single-quoted strings as they
get recolored by the subsequent general string-coloring command.
And remove the coloring of all-uppercase words, as other editors
do not color those either.
2017-12-25 15:36:35 +01:00
Benno Schulenberg
ab62d28817
syntax: javascript: require that a comment is preceded by whitespace
...
Either by whitespace or by the start of a line.
This avoids treating part of a URL as a comment.
2017-12-25 15:25:04 +01:00
Mike Frysinger
8e0a7ec20d
syntax: javascript: add newer keywords and string syntax
2017-12-25 15:08:03 +01:00
Benno Schulenberg
23d66949e1
tweaks: frob four comments, and rewrap two lines
2017-12-24 11:53:38 +01:00
Benno Schulenberg
184bb11fd9
tweaks: factor out a piece of common code
2017-12-24 11:25:10 +01:00
Benno Schulenberg
a70db34fc9
tweaks: remove two irrelevant conditions
...
They were mistakenly added by changeset fb85c055
, four commits ago.
2017-12-24 11:10:41 +01:00
Benno Schulenberg
fbde1b2d71
tweaks: reshuffle another bit of code, for conciseness
2017-12-24 10:56:16 +01:00
Benno Schulenberg
c22fef18e4
tweaks: reshuffle a bit of common code, moving it to an existing function
2017-12-23 21:50:18 +01:00
Benno Schulenberg
ee5b250b66
indenting: don't exclude last line of region when region is empty
...
This fixes https://savannah.gnu.org/bugs/?52717 .
2017-12-23 11:42:25 +01:00
Benno Schulenberg
fb85c05594
text: keep cursor at left edge when it IS there when indenting/commenting
...
Suggested-by: Brand Huntsman <alpha@qzx.com>
2017-12-21 19:47:22 +01:00
Benno Schulenberg
25b1114e03
tweaks: elide two parameters from the get_region() function
2017-12-21 19:47:22 +01:00
Benno Schulenberg
4b8a387529
text: let indenting/commenting skip the last line if its x is zero
...
If the marked region ends at the start of a line, do not include that
line in the indenting/undenting or commenting/uncommenting. This is
closer to what the eye would expect.
2017-12-21 19:47:22 +01:00
Benno Schulenberg
df41114e0e
tweaks: drop some old debugging code plus a superfluous comment
2017-12-21 19:45:18 +01:00
Benno Schulenberg
dc3618a127
text: set and reset the Modified state correctly when undoing/redoing
...
Unset the "Modified" marker only at the point where the file was last
saved -- if there is such a point, because it can be missing when the
undo stack was discarded.
This fixes https://savannah.gnu.org/bugs/?52689 .
Reported-by: Liu Hao <lh_mouse@126.com>
Original-idea-by: Brand Huntsman <alpha@qzx.com>
2017-12-19 19:22:52 +01:00
Benno Schulenberg
31fe0753e3
tweaks: limit the resetting of "Modified" to writing a full buffer
...
When doing that, there is no need to save and restore the Modified
state when writing a marked region.
2017-12-19 17:57:49 +01:00
Benno Schulenberg
7ad5afb935
tweaks: remove some unneeded parentheses, and shorten two function calls
2017-12-17 20:32:17 +01:00
Benno Schulenberg
e1b0f2b275
display: ensure that cursor is visible when compiled with --with-slang
...
This fixes https://savannah.gnu.org/bugs/?52651 .
Reported-by: David Lawrence Ramsey <pooka109@gmail.com>
2017-12-17 16:34:02 +01:00
Benno Schulenberg
0e0fb452a3
input: optimize a bit for non-shortcut keys, as they are most frequent
2017-12-17 12:49:04 +01:00
David Lawrence Ramsey
f66432e999
input: support backtab when Slang and/or --rebindkeypad is used
...
The escape sequence "Esc [ Z" is a backtab on most supported terminals,
so make sure convert_sequence() treats it as such.
2017-12-17 12:11:35 +01:00
Benno Schulenberg
08e9d30fa2
tweaks: condense some debugging code, and rewrap a line
2017-12-16 21:50:10 +01:00
Benno Schulenberg
d2270e514b
input: make <Ctrl+Shift+Arrow> work also when using --rebindkeypad
...
The function get_keycode() should never return zero -- it should
return either the code from ncurses or the given fallback code.
This fixes https://savannah.gnu.org/bugs/?52682 .
2017-12-16 21:09:01 +01:00
Benno Schulenberg
031305c205
tweaks: strip some debugging stuff, and condense a bit of code
2017-12-16 19:56:15 +01:00
Benno Schulenberg
e2843ede7e
text: let a Shift-selection persist when indenting and commenting
...
To achieve that, fake the Shift key being held when indenting/
unindenting/commenting/uncommenting.
Reported-by: Brand Huntsman <alpha@qzx.com>
2017-12-12 21:09:28 +01:00
Benno Schulenberg
09958ebdff
input: allow using <Tab> and <Shift+Tab> to (un)indent selected region
...
When the mark is on, instead of letting a <Tab> simply insert a Tab
character at the cursor position, let it indent the marked region.
Original-idea-by: Chris Allegretta <chrisa@asty.org>
2017-12-12 20:37:41 +01:00
Michael Francis
53fc9a66a6
syntax: php: function and variable names can contain uppercase and digits
...
Reference: http://php.net/manual/en/language.variables.basics.php
Also color keywords differently from strings.
Signed-off-by: Michael Francis <mikefrancis95@gmail.com>
2017-12-11 21:02:36 +01:00
Benno Schulenberg
a95c6c5fe8
tweaks: condense or rewrap a bunch of repetitious comments
2017-12-11 20:02:43 +01:00
Benno Schulenberg
bcd187d7d6
tweaks: rewrap some lines and some comments, and trim two others
2017-12-10 20:03:51 +01:00
Benno Schulenberg
03783a7d1b
tweaks: trim another placing of a terminating nul byte
...
Make both preceding character moves include the terminating byte.
2017-12-10 19:56:36 +01:00
Benno Schulenberg
f2fb8c01f4
tweaks: remove a superfluous placing of a terminating nul byte
...
The character move has already copied the terminating byte.
And a reallocation to save just one character of memory is
a waste of time.
2017-12-10 19:49:57 +01:00
Benno Schulenberg
ddb8e95d39
syntax: python: color also the special values 'False', 'None', 'True'
...
And increase the contrast for the reminders, both for PO and Python.
2017-12-10 14:35:13 +01:00
Benjamin Mintz
fbac4505ce
syntax: python: add 'async', 'await', and 'nonlocal' as keywords
...
A list of keywords can be obtained from `keyword.kwlist`.
Signed-off-by: Benjamin Mintz <bmintz@protonmail.com>
2017-12-10 14:23:51 +01:00