1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-02 02:10:46 -08:00
emacs/lisp
Eli Zaretskii 7277c0fca7 Finish up native display of line numbers
* src/xdisp.c (maybe_produce_line_number): Produce a blank before
the number, for R2L rows.  Increment 'g' in the loop even if
glyph_row is NULL.  Accept 2nd argument FORCE and produce the
line-number glyphs if it is non-zero.
(move_it_in_display_line_to): Account for the space taken by the
line-number glyphs.  Call maybe_produce_line_number with 2nd
argument non-zero.
(set_cursor_from_row): Fix calculation of cursor X coordinate in
R2L rows with display-produced glyphs at the beginning.
(syms_of_xdisp) <line-number>: New face symbol.
<relative, display-line-width>: New symbols.
(maybe_produce_line_number): Use the line-number face for
displaying line numbers.  Support relative line-number display.
Support user-defined width for displaying line numbers.
(try_cursor_movement, try_window_id): Disable these optimizations
when displaying relative line numbers.
* src/dispextern.h (struct it): New member 'pt_lnum'.

* lisp/faces.el (line-number): New face.
* lisp/cus-start.el (standard): Provide customization forms for
display-line-numbers and display-line-width.
* lisp/menu-bar.el (menu-bar-showhide-menu): Add menu-bar item to
turn display-line-numbers on and off.

* etc/NEWS: Document the new feature.
2017-06-17 17:42:44 +03:00
..
calc Use the expression angle units while simplifying it 2017-05-18 14:47:06 +09:00
calendar Make `todo-toggle-item-highlighting' work on multiline items (bug#27133) 2017-05-29 20:26:49 +02:00
cedet Don't pass the value of point to 'push-mark', as that's the default. 2017-04-28 11:25:26 +03:00
emacs-lisp Fix wrong indentation after string literal (Bug#27306) 2017-06-13 07:19:12 -04:00
emulation Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
erc ; ChangeLog fixes 2017-06-05 20:33:55 -04:00
eshell Add missing 'require' forms to prevent compiler warnings. 2017-06-12 10:01:25 +02:00
gnus gnus-article-read-summary-keys: Don't move point for WDD and WDW commands 2017-06-14 05:35:39 +00:00
image Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
international ; Update some more Maintainer: header comments 2017-06-05 21:08:07 -04:00
language Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
leim/quail Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
mail ; Update some more Maintainer: header comments 2017-06-05 21:08:07 -04:00
mh-e ; Spelling fixes for "SpamAssassin" 2017-05-30 08:29:34 -07:00
net Fix Bug#27315 2017-06-14 14:17:22 +02:00
nxml Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
obsolete ; Update some more Maintainer: header comments 2017-06-05 21:08:07 -04:00
org ; ChangeLog fixes 2017-06-07 15:55:33 -04:00
play Replace more nested ifs with cond 2017-04-08 11:36:56 -04:00
progmodes Create a toggle between block and line comments in CC Mode. 2017-06-15 21:03:03 +00:00
term Multiline support in NS "Open Selected File" service. 2017-05-04 20:32:40 +02:00
textmodes Fix highlighting of CSS selectors with double hyphens 2017-06-11 19:32:17 +02:00
url (url-cookie-host-can-set-p): Protect against zero-length domains 2017-06-07 16:17:47 +02:00
vc More small authors.el updates 2017-06-06 15:08:41 -04:00
abbrev.el Stop abbrev-prefix-mark from adding extra newline (Bug#25767) 2017-03-02 19:01:18 -05:00
align.el Replace some uses of cl-member-if with apply 2017-04-08 11:36:56 -04:00
allout-widgets.el
allout.el Don't pass the value of point to 'push-mark', as that's the default. 2017-04-28 11:25:26 +03:00
ansi-color.el
apropos.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
arc-mode.el
array.el
auth-source-pass.el Tweak auth-source-pass.el to avoid run-time subr-x 2017-05-02 16:59:51 -04:00
auth-source.el * lisp/auth-source.el (auth-source-backend-parse): `return' -> cl-return. 2017-04-28 08:21:39 -04:00
autoarg.el
autoinsert.el change auto-insert to use derived-mode-p 2017-04-05 15:53:38 -06:00
autorevert.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
avoid.el
battery.el lisp/*.el: Fix some warnings 2017-01-29 19:34:35 +01:00
bindings.el ; Fix docstring 2017-06-13 14:31:53 +09:00
bookmark.el Convert more uses of looking-at' to following-char' 2017-02-12 17:21:06 -06:00
bs.el ; Update some more Maintainer: header comments 2017-06-05 21:08:07 -04:00
buff-menu.el * lisp/buff-menu.el: Turn on lexical-binding. 2017-02-12 20:02:26 -05:00
button.el Ensure button-get works in any buffer 2017-05-29 01:00:05 +01:00
calculator.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
case-table.el
cdl.el ; Small fixes for some Author: header comments 2017-06-05 20:35:17 -04:00
ChangeLog.1
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9
ChangeLog.10
ChangeLog.11
ChangeLog.12 ; ChangeLog fixes 2017-06-05 20:33:55 -04:00
ChangeLog.13 ; Update contributor name 2017-05-06 18:38:18 -07:00
ChangeLog.14 ; Update contributor name 2017-05-06 18:38:18 -07:00
ChangeLog.15 More authors.el updates 2017-06-07 14:27:21 -04:00
ChangeLog.16 More authors.el updates 2017-06-07 14:27:21 -04:00
ChangeLog.17 ; Spelling fixes 2017-05-06 18:30:14 -07:00
char-fold.el
chistory.el
cmuscheme.el
color.el Fix color component calculations in color.el 2017-03-03 16:05:02 +02:00
comint.el Broaden comint-password-prompt-regexp 2017-04-28 16:17:27 -04:00
completion.el
composite.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
COPYING
cus-dep.el Revert "Replace ldefs-boot with a much smaller file" 2017-03-07 13:49:48 +00:00
cus-edit.el Use user-error for customize's "invalid face" error 2017-04-13 20:17:08 -04:00
cus-face.el
cus-start.el Finish up native display of line numbers 2017-06-17 17:42:44 +03:00
cus-theme.el Nix some useless uses of looking-at, looking-back 2017-02-12 10:59:33 -05:00
custom.el ; * lisp/custom.el: Comments. 2017-02-21 15:11:56 -05:00
dabbrev.el ; Update some more Maintainer: header comments 2017-06-05 21:08:07 -04:00
delim-col.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
delsel.el
descr-text.el describe-char: unambiguous name for inserting ASCII 7 2017-02-08 22:38:39 +01:00
desktop.el * lisp/desktop.el (desktop-clear): Skip the daemon's frame (Bug#26912). 2017-06-05 00:08:43 -04:00
dframe.el
dired-aux.el dired ‘M’ should not complain about ‘.’ and ‘..’ 2017-04-16 23:37:29 -07:00
dired-x.el dired-mark-suffix: New command 2017-03-31 17:27:08 +09:00
dired.el Preserve point in Dired windows under 'dired-auto-revert-buffer' 2017-06-10 11:22:50 +03:00
dirtrack.el
disp-table.el
dnd.el
doc-view.el Avoid unnecessary loading of subr-x at run-time 2017-04-18 19:07:28 -04:00
dom.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
dos-fns.el ; Update some more Maintainer: header comments 2017-06-05 21:08:07 -04:00
dos-vars.el
dos-w32.el
double.el
dynamic-setting.el
ebuff-menu.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
echistory.el
ecomplete.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
edmacro.el
ehelp.el
elec-pair.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
electric.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
elide-head.el
emacs-lock.el
env.el
epa-dired.el
epa-file.el Revert "Output number of characters added to file (Bug#354)" 2017-05-08 23:28:32 -04:00
epa-hook.el
epa-mail.el
epa.el Small improvement for epa-display-error (bug#24553) 2017-03-10 15:14:33 -05:00
epg-config.el Remove trivial duplication in epg-config 2017-03-11 17:22:56 -08:00
epg.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
expand.el ; Update some more Maintainer: header comments 2017-06-05 21:08:07 -04:00
ezimage.el
face-remap.el
facemenu.el
faces.el Finish up native display of line numbers 2017-06-17 17:42:44 +03:00
ffap.el ffap: Don't switch window unless needed 2017-04-22 18:33:38 +02:00
filecache.el
filenotify.el Fix filenotify-tests.el for cygwin 2017-05-01 12:16:15 +02:00
files-x.el Apply connecion-local variables for shells 2017-04-02 11:02:54 +02:00
files.el Fix bootstrap build of files.el 2017-05-06 23:23:45 +02:00
filesets.el
find-cmd.el
find-dired.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
find-file.el Make ff-find-other-file symmetric for C++ (Bug#20192) 2017-05-21 17:43:02 -04:00
find-lisp.el
finder.el Revert "Replace ldefs-boot with a much smaller file" 2017-03-07 13:49:48 +00:00
flow-ctrl.el
foldout.el
follow.el Don't end non-hook variable with "-hook" (Bug#26623) 2017-05-20 19:13:57 -04:00
font-core.el
font-lock.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
format-spec.el
format.el
forms.el
frame.el ; Spelling fixes 2017-06-10 11:44:49 -07:00
frameset.el Add new frame parameters and associated functions 2017-04-12 10:38:25 +02:00
fringe.el
generic-x.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
help-at-pt.el
help-fns.el Fix bug #26529: C-h k errors with a lambda function bound to a key. 2017-04-16 10:01:09 +00:00
help-macro.el
help-mode.el Give , and .@ doc strings. Fixes bug #24561. 2017-01-23 19:00:49 +00:00
help.el Reimplement module functions 2017-05-20 15:32:52 +02:00
hex-util.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
hexl.el Don't pass the value of point to 'push-mark', as that's the default. 2017-04-28 11:25:26 +03:00
hfy-cmap.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
hi-lock.el Drop face from hi-lock--unused-faces only when used 2017-04-27 12:01:19 +09:00
hilit-chg.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
hippie-exp.el
hl-line.el hl-line.el: Don't try to operate on a killed buffer 2017-01-28 20:49:19 +01:00
htmlfontify.el Don't require a shell when loading htmlfontify 2017-01-27 18:37:58 +01:00
ibuf-ext.el Ibuffer: Erase output buffer before shell commands 2017-02-09 18:14:10 +09:00
ibuf-macs.el Ibuffer: Erase output buffer before shell commands 2017-02-09 18:14:10 +09:00
ibuffer.el Fix a small incompatibility in ibuffer 2017-03-30 20:19:50 -04:00
icomplete.el Give a fixed default value for icomplete-prospects-height (Bug#26939) 2017-06-14 07:03:05 -04:00
ido.el Fix ido-enable-dot-prefix for empty choice (Bug#26997) 2017-05-20 21:54:02 -04:00
ielm.el
iimage.el ; Update some more Maintainer: header comments 2017-06-05 21:08:07 -04:00
image-dired.el Nix some useless uses of looking-at, looking-back 2017-02-12 10:59:33 -05:00
image-file.el
image-mode.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
image.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
imenu.el Fix imenu--sort-by-position for non-pairs parameters (bug#26457) 2017-04-13 11:44:17 +02:00
indent.el Make `indent-line-to' respect field boundaries (Bug#26891) 2017-05-15 22:58:24 -04:00
info-look.el Avoid unnecessary loading of subr-x at run-time 2017-04-18 19:07:28 -04:00
info-xref.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
info.el Use substring completion for Info menus and index 2017-04-19 20:43:41 -04:00
informat.el
isearch.el Limit scope of local overriding-terminal-local-map 2017-06-01 17:56:14 -04:00
isearchb.el
jit-lock.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
jka-cmpr-hook.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
jka-compr.el Revert "Output number of characters added to file (Bug#354)" 2017-05-08 23:28:32 -04:00
json.el Fix definition of whitespace in JSON 2017-05-21 23:03:01 +02:00
kermit.el
kmacro.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
ldefs-boot.el ; Auto-commit of loaddefs files. 2017-06-01 06:26:41 -04:00
linum.el Avoid slow startup in daemon mode when global-linum-mode is on 2017-06-04 19:27:13 +03:00
loadhist.el
loadup.el Make charprop.el provide a feature 2017-04-26 12:51:48 -04:00
locate.el
lpr.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
ls-lisp.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
macros.el Find macro binding for symbol-bound macros too (Bug#6848) 2017-02-21 21:44:54 -05:00
Makefile.in Skip .#* temporaries when finding sources 2017-05-30 09:28:19 -07:00
makesum.el
man.el Fix obsolete ‘test/automated’ references 2017-03-27 11:30:08 -07:00
master.el
mb-depth.el Turn on lexical-binding in mb-depth.el 2017-01-04 22:31:26 -05:00
md4.el Turn on lexical-binding in md4.el 2017-01-03 18:34:13 -05:00
menu-bar.el Finish up native display of line numbers 2017-06-17 17:42:44 +03:00
midnight.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
minibuf-eldef.el
minibuffer.el Use substring completion for Info menus and index 2017-04-19 20:43:41 -04:00
misc.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
misearch.el
mouse-copy.el
mouse-drag.el
mouse.el Support drag and drop of region by mouse (Bug#26725) 2017-05-27 14:57:11 +03:00
mpc.el ; Fix MPC menu title 2017-04-27 00:04:54 -04:00
msb.el
mwheel.el New internal-border face and args for select-window and x-focus-frame 2017-04-12 18:22:44 +02:00
newcomment.el Test comment-multi-line = nil auto fill case too 2017-02-14 22:29:56 -05:00
notifications.el
novice.el
obarray.el * lisp/obarray.el (obarray-size): Avoid compiler warning. 2017-03-18 12:29:12 -04:00
outline.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
paren.el Merge from origin/emacs-25 2017-03-19 12:34:04 -07:00
password-cache.el
pcmpl-cvs.el
pcmpl-gnu.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
pcmpl-linux.el
pcmpl-rpm.el
pcmpl-unix.el
pcmpl-x.el
pcomplete.el
pixel-scroll.el New minor mode 'pixel-scroll-mode' 2017-05-13 20:25:39 +03:00
plstore.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
printing.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
proced.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
profiler.el Remove some explicit runtime loads of pcase 2017-04-19 16:32:04 -04:00
ps-bdf.el
ps-def.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
ps-mule.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
ps-print.el ; Auto-commit of loaddefs files. 2017-01-04 14:21:38 -05:00
ps-samp.el
README
recentf.el Fix Bug#27108 2017-05-31 20:32:31 +02:00
rect.el Avoid infloop in rect.el 2017-02-18 11:32:45 +02:00
register.el
registry.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
repeat.el
replace.el * lisp/replace.el (query-replace-regexp-eval): Doc fix. 2017-05-19 11:12:51 +03:00
reposition.el
reveal.el
rfn-eshadow.el
rot13.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
rtree.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
ruler-mode.el Fix ruler-mode text-scaling issues 2017-05-27 16:25:02 +03:00
savehist.el
saveplace.el
sb-image.el
scroll-all.el
scroll-bar.el New internal-border face and args for select-window and x-focus-frame 2017-04-12 18:22:44 +02:00
scroll-lock.el
select.el Fix ':version' of 'select-enable-primary' 2017-01-06 15:23:17 +02:00
server.el Remove server-buffer-clients string from minor-mode-alist 2017-02-12 11:51:19 -05:00
ses.el Don't pass the value of point to 'push-mark', as that's the default. 2017-04-28 11:25:26 +03:00
shadowfile.el
shell.el Make sure that `shell' makes BUFFER current 2017-04-10 10:21:44 +02:00
simple.el Enable eldoc-mode explicitly inside read--expression 2017-06-06 01:04:17 +03:00
skeleton.el Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
sort.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
soundex.el
speedbar.el
startup.el ; Add a new TODO item 2017-02-20 18:08:48 -08:00
strokes.el
subr.el * lisp/subr.el (read-passwd): Don't delete return value (Bug#22027). 2017-06-05 18:57:32 -04:00
svg.el * lisp/svg.el (svg-line): Fix x/y typo. (Bug#26953) 2017-05-20 17:14:36 -07:00
t-mouse.el
tabify.el
talk.el
tar-mode.el Warn about incomplete untarring of link files 2017-01-01 16:36:23 -05:00
tempo.el
term.el Support Bash Ctrl-Z indication of directory name in term.el 2017-01-27 11:26:36 +02:00
thingatpt.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
thumbs.el
time-stamp.el Simplify time-stamp mail host usage 2017-02-12 17:44:46 -08:00
time.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
timezone.el
tmm.el Use completing-read-default in tmm-prompt 2017-06-02 20:00:49 -04:00
tool-bar.el
tooltip.el
tree-widget.el
tutorial.el
type-break.el Don't call 'kill-this-buffer' outside of menus 2017-04-12 23:14:20 +03:00
uniquify.el
userlock.el Avoid userlock queries hanging forever in batch mode 2017-04-14 21:18:07 -04:00
vcursor.el
version.el Remove the build number from emacs-version variable 2017-02-17 20:15:21 -05:00
view.el ; Update some more Maintainer: header comments 2017-06-05 21:08:07 -04:00
vt-control.el
vt100-led.el
w32-fns.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
w32-vars.el
wdired.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
whitespace.el Fix turning off whitespace-mode 2017-05-19 15:20:59 +03:00
wid-browse.el
wid-edit.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
widget.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
windmove.el
window.el Fix bugs in with-displayed-buffer-window' and fit-window-to-buffer' 2017-04-15 16:16:26 +02:00
winner.el
woman.el Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
x-dnd.el
xdg.el Substitute leading $HOME/ in xdg-user-dirs 2017-02-12 20:31:38 -05:00
xml.el xml: Properly handle symbol-qnames for attribute parsing 2017-04-17 17:17:00 +02:00
xt-mouse.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
xwidget.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00

This directory contains source code for the parts of Emacs that are
written in Emacs Lisp.  *.el files are Emacs Lisp source, and the
corresponding *.elc files are byte-compiled versions.  Byte-compiled
files are architecture-independent.

The term subdirectory contains Lisp files that customize Emacs for
certain terminal types.  When Emacs starts, it checks the TERM
environment variable to get the terminal type and loads
'term/${TERM}.el' if it exists.

The other subdirectories hold Lisp packages grouped by their general
purpose.