1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-26 10:49:33 +00:00
Commit Graph

125158 Commits

Author SHA1 Message Date
Lars Ingebrigtsen
cb5f690e4a Allow reading Gnus reports from an offline cache
* lisp/gnus/gnus-group.el (gnus-read-ephemeral-bug-group):
Allow reading bug reports from an offline cache directory.
2016-02-29 17:53:00 +11:00
Tino Calancha
16efc8d53f Meta + shift + Fn combos are recognized by xterm>=216.
* lisp/term/xterm.el (xterm-alternatives-map): Meta + shift +
Fn combos are recognized by xterm>=216 (bug#22837).
2016-02-29 17:07:59 +11:00
Simen Heggestøyl
fb0959e713 Declare $ as an expression prefix in SCSS
* lisp/textmodes/css-mode.el (scss-mode-syntax-table): Declare $ as an
expression prefix (bug#22841).
2016-02-29 17:06:26 +11:00
Lars Ingebrigtsen
3e2883c4ce Revert "Declare $ as an expression prefix in SCSS"
This reverts commit ffb33264f2.

Revering to fix author name.
2016-02-29 17:05:14 +11:00
Simen
ffb33264f2 Declare $ as an expression prefix in SCSS
* lisp/textmodes/css-mode.el (scss-mode-syntax-table): Declare $ as an
expression prefix (bug#22841).
2016-02-29 17:03:39 +11:00
Hugh Brown
90c36173fd Save buffers before running grep commands
* lisp/progmodes/grep.el (grep-ask-about-save): New variable (bug#96).
(grep, lgrep, rgrep): Use it (bug#96).

* doc/emacs/building.texi (Grep Searching): Document
`grep-save-buffers'.

* lisp/progmodes/grep.el (grep-save-buffers): Rename from
`grep-ask-about-save'.
(grep--save-buffers): New function.
(grep, lgrep, rgrep): Use it.
2016-02-29 16:20:05 +11:00
Lars Ingebrigtsen
04289d1cd8 Allow sorting flyspell corrections
* lisp/textmodes/flyspell.el (flyspell-sort): New function (bug#2405).
(flyspell-sort-corrections-functionx): New variable.
(flyspell-sort-corrections-alphabetically): New function.
(flyspell-notify-misspell): Use them.
(flyspell-auto-correct-word): Ditto.
(flyspell-emacs-popup): Ditto.
(flyspell-xemacs-popup): Ditto.  Suggested by Sebastien Delafond.
2016-02-29 15:13:30 +11:00
Lars Ingebrigtsen
9671650a7c Wait for async DNS to complete before freeing resources
* src/process.c (Fdelete_process): Wait for async DNS to
complete before freeing the data structures it needs.
2016-02-29 14:20:09 +11:00
Lars Ingebrigtsen
f195dd692b * lisp/faces.el: Remove duplicated functions from previous patch. 2016-02-29 13:31:45 +11:00
Eli Zaretskii
9295d0a8c2 Fix TLS connections on MS-Windows
* src/w32.c (sys_write): If 'send' returns with WSAENOTCONN, and
this is a non-blocking socket whose connection is in progress, set
errno to EWOULDBLOCK, as expected by GnuTLS and other callers.
Avoid overwriting the errno value from 'send' by 'ioctlsocket'.
Suggested by Alain Schneble <a.s@realize.ch>.  (Bug#22789)
2016-02-28 18:44:50 +02:00
Lars Ingebrigtsen
cd60679657 Add a NEWS entry for the read-color change 2016-02-28 17:29:08 +11:00
Jan Moringen
8ed026d617 Show the face colours when completing in `read-color'
* lisp/faces.el (defined-colors-with-face-attributes): New function.
(readable-foreground-color, defined-colors-with-face-attributes)
(readable-foreground-color): Ditto.
(read-color): Use them (bug#5305).
2016-02-28 17:27:23 +11:00
Lars Ingebrigtsen
3ac844be4e Clean up the code in parse-time-string-chars
* lisp/calendar/parse-time.el (parse-time-string-chars):
Clean up the code a bit.
2016-02-28 15:34:33 +10:30
Lars Ingebrigtsen
12d10d2599 Add some tests for parse-time.el
* test/lisp/calendar/parse-time-tests.el: New file.
2016-02-28 15:30:30 +10:30
Dima Kogan
e8146d49b0 Strip out some leading whitespace when looking at logs
* lisp/vc/vc-git.el (vc-git-expanded-log-entry): When looking
at expanded git logs with `vc-print-root-log' (C-x v L, then
<enter> by default), Emacs was stripping out all leading
whitespace from git logs.  I now strip exactly 2 leading
spaces, which retains the indentation in the logs (bug#18110).
2016-02-28 15:18:45 +10:30
Dima Kogan
f4b057c67f Use a separate history variable for align-regexp
* lisp/align.el (align-regexp-history): New variable (bug#16891).
(align-regexp): Use it.
2016-02-28 15:15:18 +10:30
Phil Sung
e00974a7d1 Create subdirectories automatically in wdired
* lisp/wdired.el (wdired-create-parent-directories): New
variable (bug#6817).
(wdired-create-parentdirs): New function.
(wdired-do-renames): Use it.
* doc/emacs/dired.texi (Wdired): Mention
`wdired-create-parent-directories'
2016-02-28 15:07:02 +10:30
Lars Ingebrigtsen
d5f270f296 Return the correct error values from gnutls.c
* src/gnutls.c (emacs_gnutls_read): Set errno to the value
expected by process.c.
(gnutls_try_handshake): Set gnutls_p to true earlier to avoid
possible race condition with the process.c socket polling
functions.
2016-02-28 14:04:04 +10:30
Aaron S. Hawley
b829c9e15b Don't make assumptions about mkdir. (Bug#22822)
* test/Makefile.in (MKDIR_P): New, set by configure.
(%.log): Use MKDIR_P.
2016-02-27 19:01:24 -08:00
Alexander Kuleshov
c483d0530a Support switching to hexl-mode from image-mode
* lisp/image-mode.el (image-toggle-hex-display)
(image-mode-to-text): New functions.
(image-mode-map, image-minor-mode-map): Bind "C-c C-x" to
image-toggle-hex-display.
(image-mode-map): New menu item "Show as Hex".
(image-mode): Update doc string and echo-area message.
(image-toggle-display): Support toggle to hex.  (Bug#22453)

* doc/emacs/files.texi (File Conveniences): Document
'image-toggle-hex-display'.
2016-02-27 19:27:31 +02:00
Eli Zaretskii
2fa05dcd5e Remove unused code in coding.c
* src/coding.c (decode_eol): Remove unused code that handled the
case of coding->dst_object being nil.  Replace it with an
assertion.
2016-02-27 13:58:16 +02:00
Aurelien Aptel
10a364d673 * src/syntax.c: Fix result of syntax_multibyte()
The ?: operator has a lower precedence than ||.
Bug introduced by commit 45b683a.
2016-02-26 21:22:23 +01:00
Paul Eggert
e35f99f2dd --enable-gcc-warnings now uses -Wjump-misses-init
When configuring with --enable-gcc-warnings, also enable
-Wjump-misses-init, as it’s confusing to use a goto to skip over
an initialization.  Fix the few places in the code that run afoul
of this warning.
* configure.ac (WERROR_CFLAGS): Add -Wjump-misses-init.
* src/doc.c (Fsubstitute_command_keys):
* src/image.c (svg_load_image):
* src/regex.c (re_match_2_internal):
* src/xdisp.c (redisplay_internal, redisplay_window):
Don’t jump over initialization.
2016-02-26 08:23:26 -08:00
Phillip Lord
9583b9e871 ; Improve documentation in test Makefile
* test/Makefile.in: Improve documentation.
2016-02-26 11:55:38 +00:00
Jussi Lahdenniemi
97d7a0b8db Improve the register-hotkey functionality on MS-Windows
* src/w32fns.c (_WIN32_WINNT): Define to 0x0600, needed for
keyboard hook functionality.
Include w32inevt.h, basetyps.h and unknwn.h.
(VK_ANY, WM_WTSSESSION_CHANGE, WTS_SESSION_LOCK): New macros.
(kbdhook): A new struct definition.
(funhook, setup_w32_kbdhook, remove_w32_kbdhook, hook_w32_key)
(check_w32_winkey_state, reset_w32_kbdhook_state): New functions.
(modifier_set): Call check_w32_winkey_state if a Win key was
pressed and the keyboard hook is active.
(w32_wnd_proc): Don't handle Win key combinations if the keyboard
hook is active.  Only register/unregister the hotkeys if the
keyboard hook is not active.  When WM_CREATE is received, call
setup_w32_kbdhook.  When WM_DESTROY is received, call
reset_w32_kbdhook_state.
(lookup_vk_code): When the keyboard hook is active, map
alphanumeric characters to themselves.
(w32_parse_and_hook_hot_key): Renamed from w32_parse_hot_key.  Map
modified keys to VK_ANY if the keyboard hook is active.  Register
Alt-x and Win-x combinations.
(Fw32_shell_execute): Update doc string to reflect new
functionality.  Bypass the code that posts the
WM_EMACS_REGISTER_HOT_KEY message if the keyboard hook is active.
(Fw32_unregister_hot_key): Bypass the code that posts the
WM_EMACS_UNREGISTER_HOT_KEY message if the keyboard hook is active.
(syms_of_w32fns) <w32-pass-lwindow-to-system>
<w32-pass-rwindow-to-system, w32-phantom-key-code>
<w32-lwindow-modifier, w32-rwindow-modifier>: Update doc strings
to reflect the new functionality.
* src/w32console.c (initialize_w32_display): Install the low-level
keyboard hook.
* src/w32inevt.c (key_event): Handle Win-x combinations only if
the keyboard hook is not active.  If the hook is active, use
check_w32_winkey_state instead.
* src/w32term.h (setup_w32_kbdhook, remove_w32_kbdhook)
(check_w32_winkey_state): Add prototypes.
(w32_kbdhook_active): New macro.

* doc/emacs/msdos.texi (Windows Keyboard): Update to reflect the
new functionality.
2016-02-26 12:51:24 +02:00
Aaron S. Hawley
22994735af Add forward-sexp (and related) tests
* test/lisp/emacs-lisp/lisp-tests.el: New file for testing
forward-sexp and related functions (bug#22800).
2016-02-26 16:18:58 +10:30
Jan Tatarik
10b040814e Don't use (localised) week days in dates
* lisp/gnus/gnus-icalendar.el
(gnus-icalendar-event:org-timestamp): Don't use (localised)
week days in the dates, because that messes up things later.
2016-02-26 16:06:43 +10:30
Thierry Volpiatto
eea55f4f4a Update pcomplete/find
* lisp/pcmpl-gnu.el (pcomplete/find): Update to newest version
(bug#10487).
2016-02-26 16:01:46 +10:30
Lars Ingebrigtsen
4861b50e43 Make parse-time-string-chars more efficient
* lisp/calendar/parse-time.el (parse-time-string-chars): The
string has already been downcase, so don't care about case
(bug#18522).
2016-02-26 14:00:06 +10:30
Lars Ingebrigtsen
a1e7304fc4 Remove killed buffers from the list of Gnus buffers
* lisp/gnus/gnus.el (gnus-prune-buffers): Remove killed
buffers from the list of Gnus buffers (bug#18522).
2016-02-26 13:54:41 +10:30
Paul Eggert
c1415cc98c Integer overflow cleanups for ports and socklen
* src/process.c (struct sockaddr_and_len, conv_sockaddr_to_lisp)
(get_lisp_to_sockaddr_size, Fset_process_datagram_address)
(connect_network_socket):
Use ptrdiff_t, not int, for signed object sizes.
This addresses only a theoretical problem, as in practice these
object sizes are less than 2**31, but we might as well use the
same style here as elsewhere in Emacs.
(string_integer_p): Remove; all uses removed.
(Fmake_network_process): Check that port number is in range.
When converting an integer-string service, rely on strtol
rather than rechecking the string by hand.
* src/process.h, src/w32.c (conv_sockaddr_to_lisp):
Adjust prototypes to match.
2016-02-25 11:59:13 -08:00
Thierry Volpiatto
e65d4d3a5d Add pcomplete support for find
* lisp/pcmpl-gnu.el (pcomplete/find): Add pcomplete support
for find (bug#10487).
2016-02-25 16:43:52 +10:30
Per Starbäck
fecd5e589d Replace XXX acronyms with draft standard ones
* lisp/international/characters.el (c1-acronyms): Replace XXX
entries with the acronyms PAD, HOP, SGCI from draft DIS 10646
(bug#13745).
2016-02-25 16:22:17 +10:30
Kevin Ryde
80c4cfa965 Make checkdoc warn about variables described as "True"
* checkdoc.el (checkdoc-this-string-valid-engine): Docstrings for
variables "True...", and functions "Return true...", should usually be
"non-nil" (bug#15506).
2016-02-25 16:16:37 +10:30
Lars Ingebrigtsen
75b0a03c09 Add NEWS entry for "number string" change 2016-02-25 15:54:29 +10:30
Lars Ingebrigtsen
e7650ba63b Allow using "number strings" as services on non-GNU systems
* src/process.c (string_integer_p): New function.
(Fmake_network_process): Use it to allow connecting to
services specified as "993" even when getaddrbyname isn't
available.
2016-02-25 15:54:03 +10:30
Michael Albinus
ce6a03cb00 Fix problem in tramp.texi
* doc/misc/tramp.texi (File name completion): Do not use
@trampfn{} for IPv6 addresses.  Somehow, it results in errors
during PDF creation.
2016-02-24 11:02:48 +01:00
Lars Ingebrigtsen
378d138e64 Make image commands available in image-mode
* lisp/image-mode.el (image-mode-map): Inherit from
`image-map' so that the usual image commands work.
2016-02-24 18:11:46 +11:00
Lars Ingebrigtsen
bb2ab2fbcc Move o' to O' in shr-map
* lisp/net/shr.el (shr-map): `shr-save-contents' has moved
from `o' to `O' to avoid collisions with `image-map'.
2016-02-24 18:07:49 +11:00
Lars Ingebrigtsen
dcf9eee5f1 Make setting the coding system non-blocking
* src/process.c (Fset_process_filter_multibyte): Defer
completing coding system setup in asynchronous processes.
(Fset_process_coding_system): Ditto.
2016-02-24 17:21:50 +11:00
Gregoire Jadi
9aac47f42e Mention `proced-toggle-auto-update' in the proced-mode doc string
* lisp/proced.el (proced-mode): Mention
`proced-toggle-auto-update' (bug#14341).
2016-02-24 16:06:07 +11:00
Joshua Datko
338f78ad6a Add a fortune-message command
* lisp/play/fortune.el (fortune-message): Add a command to
display fortunes in the echo area (bug#14915).

Copyright-paperwork-exempt: yes
2016-02-24 15:42:28 +11:00
Susanne Oberhauser
bed990a747 Add hideshow bindings analogous to outline mode
* lisp/progmodes/hideshow.el (hs-minor-mode-map): Add bindings
analogous to outline mode bindings (bug#15324).

Copyright-paperwork-exempt: yes
2016-02-24 15:13:41 +11:00
Bastien Guerry
3c36fc13c9 Allow highlighting things like @math{2^{12}}
* lisp/textmodes/texinfo.el (texinfo-font-lock-keywords):
Allow highlighting things like @math{2^{12}} (bug#16390).
2016-02-24 14:35:28 +11:00
Per Bothner
6ef8c6ceb8 Make `C-{up,down,left,right}' work in term mode
* lisp/term.el (term-raw-map): Define C-{up,down,left,right}
to send the same escape sequence that xterm sends.  This makes
backward-word and forward-word work in readline (bug#16746).
2016-02-24 14:19:17 +11:00
Dima Kogan
70c3c79ec0 Allow ff-find-other-file (etc) to work with indirect clone buffers
* lisp/find-file.el (ff-buffer-file-name): New function to
allow the feature to work with indirect buffers, too
(bug#16904).
(ff-find-the-other-file): Use it.
(ff-other-file-name): Ditto.
(ff-get-file-name): Ditto.
2016-02-24 14:01:50 +11:00
Lars Ingebrigtsen
fddbd8ca22 Fix error in add-change-log-entry when the entry has no newline
* lisp/vc/add-log.el (add-change-log-entry): The entry in the
ChangeLog may end without a new line starting with blanks.
2016-02-24 13:08:48 +11:00
Lars Ingebrigtsen
91ea60cf58 Avoid using mm-util functoins in gravatar.el
* lisp/image/gravatar.el (gravatar-retrieve): Avoid using
mm-util functions.
(gravatar-retrieve-synchronously): Ditto.
2016-02-24 13:07:34 +11:00
Lars Ingebrigtsen
21fe2ebec8 Move low-level library files from the lisp/gnus directory
The files moved from lisp/gnus are:

auth-source.el -> /
compface.el -> /image
ecomplete.el -> /
flow-fill.el -> /mail
gravatar.el -> /image
gssapi.el -> /net
html2text.el -> /net
ietf-drums.el -> /mail
mail-parse.el -> /mail
mail-prsvr.el -> /mail
mailcap.el -> /net
plstore.el -> /
pop3.el -> /net
qp.el -> /mail
registry.el -> /
rfc1843.el -> /international
rfc2045.el -> /mail
rfc2047.el -> /mail
rfc2231.el -> /mail
rtree.el -> /
sieve-manage.el -> /net
sieve-mode.el -> /net
sieve.el -> /net
starttls.el -> /net
utf7.el -> /international
yenc.el -> /mail
2016-02-24 13:04:03 +11:00
Tino Calancha
e1d749bd7e Allow undoing changes while doing query-replace
* doc/lispref/searching.texi (Search and Replace): Mention
undo (bug#21684).

* lisp/replace.el (query-replace-help): Document undo.
(perform-replace): Implement undo while replacing text.
2016-02-24 12:35:46 +11:00