1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-19 01:10:57 -08:00
Commit graph

139572 commits

Author SHA1 Message Date
Robert Pluim
68df7d7069 Fix duplicated words in lispref
* doc/lispref/text.texi (Base 64):
* doc/lispref/internals.texi (Window Internals): Remove duplicated
words.
2019-10-15 14:41:43 +02:00
Robert Pluim
eda385266e Fix duplicated words in comments
* src/coding.c (encode_string_utf_8):
* src/keyboard.c (syms_of_keyboard):
* src/mini-gmp.c (gmp_lucas_mod, mpz_export):
* src/pdumper.c (dump_set_referrer, dump_queue_compute_score):
* src/timefns.c (Ftime_convert): Remove duplicated words.
2019-10-15 14:28:59 +02:00
Eli Zaretskii
c76b968374 Fix recording keyboard macros in Calc
* lisp/calc/calc.el (calc-unread-command): Prevent recording
key twice when defining a keyboard macro.  Patch by Christoph
Arenz <tiga.arenz@web.de>.

Copyright-paperwork-exempt: yes
2019-10-15 15:09:55 +03:00
Daiki Ueno
fcb89237d9 auth-source: Fix wrong-type-argument when searching plstore
`auth-source-search' can be called with an integer port number from
`network-stream-certificate`, while the backend implementation doesn't
allow non-string attributes.

* lisp/auth-source.el (auth-source-plstore-search): Ensure attributes
are string.
2019-10-15 12:49:45 +02:00
Lars Ingebrigtsen
42df8cd686 Revert "Remove XEmacs code from tetris.el"
This reverts commit 68b91333d5.

This should be ported to Emacs instead.
2019-10-15 11:07:04 +02:00
Lars Ingebrigtsen
f33965798b Revert "Remove XEmacs-only code from snake.el"
This reverts commit 7174a2b59f.

This should be ported to Emacs instead.
2019-10-15 11:07:04 +02:00
Eli Zaretskii
2b347905fe ; Minor copyedits in recently installed documentation changes
* lisp/files.el (require-final-newline):
* etc/NEWS: Improve wording in recent documentation changes.
2019-10-15 11:20:22 +03:00
Lars Ingebrigtsen
dcc710916e Make auth-source work with non-ASCII passwords again
* lisp/auth-source.el (auth-source--obfuscate): Convert the string
to bytes before obfuscating.
(auth-source--deobfuscate): Convert back into a string (bug#37758).
2019-10-15 08:42:28 +02:00
Lars Ingebrigtsen
ddc9837bf4 Add new macro `benchmark-progn'
* doc/lispref/debugging.texi (Profiling): Mention it.

* lisp/emacs-lisp/benchmark.el (benchmark-progn): New macro.
2019-10-15 08:19:14 +02:00
Carlos Pita
7acc621e37 Fix python-shell font-lock cleanup for unclosed quotes (Bug#32390)
The problem originating this report was:

-------------
In [15]: "
  File "<ipython-input-15-3b7a06bb1102>", line 1
    "
     ^
SyntaxError: EOL while scanning string literal

In [16]:   string face still here"
-------------

This happens because
python-shell-font-lock-comint-output-filter-function is called twice,
first for the error output and then for the "In [16]: " part.  The
first time python-shell-comint-end-of-output-p returns nil since
we're *not* at the end of an input prompt.  The second time it returns
0 since we're at the end of *just* an input prompt.  So we don't call
python-shell-font-lock-cleanup-buffer either time.

The current code is relying in a very weak rule: it considers "just an
input prompt" to be a continuation prompt.  Another unreliable aspect
of the current rule is that sometimes

    (python-shell-comint-end-of-output-p (ansi-color-filter-apply output))

returns 1 and not 0 for continuation prompts.  In short, the rule does
a very poor job identifying continuations.

* lisp/progmodes/python.el (python-shell-font-lock-cleanup-buffer):
Don't check for empty OUTPUT since python-shell-comint-end-of-output-p
returns nil for that anyway.  Don't check for
python-shell-comint-end-of-output-p returning a specific number
because it's unreliable, just check for any non-nil.  Identify
continuation prompts by looking for "...".
2019-10-14 20:09:38 -04:00
Juri Linkov
8a089a95d8 Add images on tab-bar buttons the first time the tab bar is activated
* lisp/tab-bar.el (tab-bar-mode): Set display property with image files
on tab-bar-new-button and tab-bar-close-button when tab-bar-mode is enabled
the first time.
(tab-bar-new-button, tab-bar-close-button): Use default values
without display image properties.  (Bug#37685)
2019-10-15 01:43:45 +03:00
Juanma Barranquero
d4cfe67e8a lisp/*.el: Force non-nil result to t, to match docstring
* lisp/ido.el (ido-ignore-item-p):
* lisp/simple.el (use-region-p):
* lisp/whitespace.el (whitespace-style-face-p)
(whitespace-style-mark-p):
* lisp/calendar/cal-islam.el (calendar-islamic-leap-year-p):
* lisp/mail/rmail.el (rmail-is-text-p):
* lisp/mh-e/mh-alias.el (mh-alias-for-from-p):
* lisp/net/imap.el (imap-message-flag-permanent-p):
* lisp/progmodes/tcl.el (tcl-real-comment-p):
* lisp/textmodes/table.el (table--point-in-cell-p):
Normalize boolean result.
2019-10-14 23:53:16 +02:00
Juri Linkov
cb29a38164 Set tab-line face height to 0.9.
* lisp/tab-line.el (tab-line): Set :height to 0.9.
* lisp/tab-bar.el (tab-bar): Remove :height.
2019-10-15 00:50:24 +03:00
Lars Ingebrigtsen
75939b84e4 Remove the find-file-visit-truename safe-local-variable
* lisp/files.el (find-file-visit-truename): Remove the
safe-local-variable put, because the variable is checked too late
to actually make a difference (bug#36830).
2019-10-14 23:36:51 +02:00
Štěpán Němec
ad6ea982e4 quail/py-b5: Use U+3007 for ideographic zero (bug#3179)
* leim/leim-ext.el ("quail/PY-b5"): Use U+3007 instead of U+25CB for
ideographic zero.  U+25CB (used previously) is only one of the several
lookalikes (bug#3179).
2019-10-14 23:12:00 +02:00
Lars Ingebrigtsen
2a41fe2eaf require-final-newline doc string clarification
* lisp/files.el (require-final-newline): Mention that the variable
applies to visited files (bug#34986).
2019-10-14 22:49:27 +02:00
Juri Linkov
674515dd75 Use variable-pitch fonts in tab-bar and tab-line faces
* lisp/tab-bar.el (tab-bar):
* lisp/tab-line.el (tab-line):
Inherit face from variable-pitch.
2019-10-14 23:07:23 +03:00
Stefan Kangas
6aa0e0c754 Clarify C void type description in semantic
* admin/grammars/c.by: Clarify void type.  (Bug#9222)
2019-10-14 21:36:59 +02:00
Lars Ingebrigtsen
dc31f254b6 dired-do-shell-command doc string fix
* lisp/dired-aux.el (dired-do-shell-command): Mention the guesser
variables (bug#16562).
2019-10-14 21:29:53 +02:00
Juri Linkov
561570475e Fix initial value of frame-inhibit-implied-resize
* src/frame.c (syms_of_frame): Update doc string and default value of
frame-inhibit-implied-resize in NS to include 'tab-bar-lines.
2019-10-14 22:14:15 +03:00
Eli Zaretskii
ad30f1e5fc Minor fixes in Introduction to Emacs Lisp
* doc/lispintro/emacs-lisp-intro.texi (if, save-excursion):
'defun' is a macro, not a special form anymore.  (Bug#37747)
2019-10-14 20:23:53 +03:00
Juri Linkov
83010ae0fe * lisp/tab-bar.el (tab-bar-tab-name-current): Fix with buffer-name. 2019-10-14 19:51:51 +03:00
Eli Zaretskii
668137acfb ; Minor copyedits of recent documentation changes
* etc/NEWS:
* doc/lispref/display.texi (Face Attributes): Fix
documentation of the ':extend' face attribute.
2019-10-14 17:35:42 +03:00
Stefan Kangas
ed29d0239a Improve documentation of dired-do-chmod
* lisp/dired-aux.el (dired-do-chmod): Doc fix.  The part about
MS-Windows was written by Eli Zaretskii.  (Bug#24897)
2019-10-14 16:00:05 +02:00
Philipp Stephani
08f6c2a8c9 Enable modules by default.
The interface has been stable since Emacs 25, and most bugs are fixed
by now.

* configure.ac: Enable modules by default.
2019-10-14 14:56:22 +02:00
Michael Albinus
d2d658320e Suppress eager completion on not connected hosts in Tramp
* lisp/net/tramp.el (tramp-completion-handle-file-name-completion):
Bind `non-essential' to t.
2019-10-14 14:53:29 +02:00
Jimmy Aguilar Mena
3d6075e3ee Merge branch 'feature/extend_face_id'
New face attribute :extend to control the face extension after
EOL.

necessary, # especially if it merges an updated upstream into a topic
branch.  # # Lines starting with '#' will be ignored, and an empty
message aborts # the commit.
2019-10-14 14:29:47 +02:00
Jimmy Aguilar Mena
7a10082093 Fix issue calling face_at_pos.
*src/xdisp.c (extend_face_to_end_of_line): Add extra condition when
producing glyphs from a C string to not call face_at_pos.
2019-10-14 14:18:42 +02:00
Jimmy Aguilar Mena
501846c859 Modify face_at_pos to not modify change IT.
src/xdisp.c (face_at_pos): Removed code to that modified
it->start_of_box_run_p and it->face_box_p.  This function should not
modify it.
(handle_face_prop): Added code to update it->start_of_box_run_p and
it->face_box_p.
(underlying_face_id): Input IT made CONST.
2019-10-14 14:18:42 +02:00
Jimmy Aguilar Mena
cc47cd4202 ; extend_face_id and fill_column_indicator corrections
*etc/NEWS: Correction for extend face and add some comments in the
code.
2019-10-14 14:18:42 +02:00
Jimmy Aguilar Mena
0cf11eb2e8 *etc/NEWS: Added comment about :extend face attribute in NEWS. 2019-10-14 14:18:42 +02:00
Jimmy Aguilar Mena
424e6f54e5 Document new :extend face attribute in manuals.
Some stylistic corrections in src/xdisp.c and src/xfaces.c.
2019-10-14 14:18:42 +02:00
Jimmy Aguilar Mena
38ee12d5a2 Fixed merge_face_ref recursive calls.
* src/xfaces.c (merge_face_ref): Fixed recursive calls to consider
filter when CONSP (face_ref).
2019-10-14 14:18:41 +02:00
Jimmy Aguilar Mena
92445de0a4 Optimization in extend_face
* src/xdisp.c (extend_face_to_end_of_line): Optimization to void
calls to face_at_pos.
2019-10-14 14:18:41 +02:00
Jimmy Aguilar Mena
acc7209884 Extend_face simplify.
* src/dispextern.h (struct it): Removed extend_face unneeded members.
* src/xdisp.c (handle_face_prop_general): renamed to face_at_pos and
removed input parameter initial_face_id. Updated all occurrences.
2019-10-14 14:18:41 +02:00
Jimmy Aguilar Mena
2b80b4dc46 Added parameter attr_filter to face_at_string_position.
Update all the occurrences in src/xdisp.c and src/xfaces.c
2019-10-14 14:18:41 +02:00
Jimmy Aguilar Mena
e1b5e80aad Extend face hl-line after end-of-line
* lisp/hl-line.el (face hl-line): Added extend attribute to hl-line
face.
2019-10-14 14:18:41 +02:00
Jimmy Aguilar Mena
ab22720651 Fix last change in append_space_for_newline.
* src/xdisp.c (append_space_for_newline): Code refactor and
 simplification.
2019-10-14 14:18:41 +02:00
Jimmy Aguilar Mena
95d1c3b23e Add space for cursor to work also in terminal.
* src/xdisp.c (append_space_for_newline): Modified to add the space
with the last face also in terminal interface.
(fill_column_indicator_column): Modified to group more conditions.
(extend_face_to_end_of_line): Simplified code in
fill_column_indicator to use the new function.
2019-10-14 14:18:40 +02:00
Jimmy Aguilar Mena
eb259473db Changed handle_face_prop_general prototype.
* src/xdisp.h (handle_face_prop_general): Changed function prototype
to receive different arguments.
2019-10-14 14:18:40 +02:00
Jimmy Aguilar Mena
b5cd6871c0 Fixed extend face filtered for prop.
* src/xfaces.c (face_at_buffer_position): Pass ATTR_FILTER to
merge_face_ref in when !NILP (prop).
2019-10-14 14:18:40 +02:00
Jimmy Aguilar Mena
faa9b06b48 Call handle_face_prop_general to extend face.
* src/xdisp.c (extend_face_to_end_of_line): Added a call to
handle_face_prop_general to extend face after EOL according to
parameter :extend in the faces.
2019-10-14 14:18:40 +02:00
Jimmy Aguilar Mena
42bbfd29e7 Update dfci code with new extend_face code.
* src/xdisp.c (extend_face_to_end_of_line): Updated the
column-indicator code to use the new version of the function
fill_column_indicator_column.
2019-10-14 14:18:40 +02:00
Jimmy Aguilar Mena
e02fe26c7f New parameter to control the face extension..
* src/xdisp.c (handle_face_prop_general): New function to specialize
handle_face_prop with ATTR_FILTER.
* src/dispextern.h (face_at_buffer_position): Added
LFACE_ATTRIBUTE_INDEX.
* src/xfaces.c (merge_face_ref): Added LFACE_ATTRIBUTE_INDEX to merge
conditionally.
2019-10-14 14:18:39 +02:00
Jimmy Aguilar Mena
bc8db39775 Added face parameter :extend.
This is an initial change to add a parameter :extend that will be used
in the display engine later.
2019-10-14 14:18:39 +02:00
Jimmy Aguilar Mena
f9206f34d6 Simplify struct face to use only underline.
* src/dispextern.h (enum face_underline_type): Add FACE_NO_UNDERLINE = 0.
(struct face): Merge `underline_type` and `underline_p` into `underline`.
Update all the occurrences in src/xdisp.c, src/xfaces.c, and src/xterm.c.
2019-10-14 14:18:39 +02:00
Robert Pluim
a122ca6907 Fix directory-files-recursively doc typo
* lisp/files.el (directory-files-recursively): Fix doc string.
2019-10-14 11:43:12 +02:00
Martin Rudalics
1fbce07e66 Fix bug recently introduced in 'fit-window-to-buffer' (Bug#37743)
* lisp/window.el (fit-window-to-buffer): Call 'window-combined-p'
with right argument (Bug#37743).
2019-10-14 10:53:07 +02:00
Lars Ingebrigtsen
01ea96b554 Fix up previous dired change again
* lisp/dired.el (dired-set-id): Fix the name of the face after the
previous change.
2019-10-14 08:47:02 +02:00
Lars Ingebrigtsen
eb57ed8dd2 Fix typo in previous dired change
* lisp/dired.el (dired-set-idguid): Remove superfluous '
introduced by previous change (bug#37742).
2019-10-14 08:43:40 +02:00