1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 16:21:07 -08:00
Commit graph

124397 commits

Author SHA1 Message Date
Glenn Morris
7a0628d82e ; * admin/make-tarball.txt: Mention cleaning. 2016-02-15 21:38:21 -08:00
Eli Zaretskii
d4b93e11a5 Minor fixes in global-auto-composition-mode
* lisp/emacs-lisp/easy-mmode.el (easy-mmode-pretty-mode-name):
Produce prettier names of globalized minor modes.
* lisp/composite.el (global-auto-composition-mode): Make it a
globalized mode.  (Bug#22682)
2016-02-15 21:46:17 +02:00
Alan Mackenzie
02b037b85c Allow arithmetic operators inside C++ template constructs.
Fixes debbugs #22486.  This corrects the previous patch with this message
which was empty.

* lisp/progmodes/cc-langs.el (c-multichar->-op-not->>-regexp): New language
variable.
(c-<>-notable-chars-re): New language variable.

* lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur): User
c-<>-notable-chars-re in place of the former fixed string in searching for
places to stop and examine.
Use c-multichar->-op-not->>-regexp to check that a found ">" is not part of a
multichar operator in place of the former c->-op-without->-cont-regexp.
Add code to skip forwards over a balanced parenthesized expression.
2016-02-15 15:05:02 +00:00
Eli Zaretskii
44b16f60fd Avoid crashes in semi-malformed 'condition-case'
* src/eval.c (internal_lisp_condition_case): Treat a handler
'(nil)' as if it were '(nil nil)'.  (Bug#22675)
2016-02-15 16:03:54 +02:00
Alan Mackenzie
652e5b49d9 Allow arithmetic operators inside C++ template constructs.
Fixes debbugs #22486.

* lisp/progmodes/cc-langs.el (c-multichar->-op-not->>-regexp): New language
variable.
(c-<>-notable-chars-re): New language variable.

* lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur): User
c-<>-notable-chars-re in place of the former fixed string in searching for
places to stop and examine.
Use c-multichar->-op-not->>-regexp to check that a found ">" is not part of a
multichar operator in place of the former c->-op-without->-cont-regexp.
Add code to skip forwards over a balanced parenthesized expression.
2016-02-15 13:32:16 +00:00
Eli Zaretskii
d9ea795035 Fix regression with 'recent-keys' and keyboard macros
* src/keyboard.c (record_char): Don't record in 'recent_keys'
events that come from executing keyboard macros.  (Bug#22674)
2016-02-15 14:03:57 +02:00
Eli Zaretskii
903603f8cd Fix wording in a doc-view.el comment
* lisp/doc-view.el (doc-view--current-cache-dir): Don't use
"illegal" for something that is not against the law.
2016-02-15 13:09:46 +02:00
Paul Eggert
cf79616133 ; Spelling fixes 2016-02-14 19:45:12 -08:00
Paul Eggert
f8bf1b35bf CONTRIBUTE cleanups and updates
* CONTRIBUTE: Mention URLs and info nodes more consistently,
avoiding possibly-confusing punctuation adjacent to a URL, and
giving full shell commands for 'info'.  Start with a brief but
complete how-to, for people who want to get started right away.
Then briefly discuss how to join the development process in the
typical order.  Omit needless words.  Update some of the
now-obsolete file names, info node names, and quoting styles.
Better document emacs-NN branches and how they are merged.
* admin/notes/git-workflow: Change emacs-24 to emacs-25,
and trunk to master.  This file still needs work.
2016-02-14 19:25:32 -08:00
Paul Eggert
f3aaca3552 Port USE_STACK_LISP_OBJECTS fix to Clang
* src/lisp.h (USE_STACK_LISP_OBJECTS): Default to false for Clang.
Recent versions of Clang claim to be GCC 4.2.1 but do not have
the GCC bug.
2016-02-14 11:43:04 -08:00
Paul Eggert
1834ac7d24 Port to x86 GCC 4.3.1 and earlier
This tries to port to x86 FreeBSD 9, where Emacs dumps core (Bug#22065).
* src/lisp.h (USE_STACK_LISP_OBJECTS): Default to false
for GCC 4.3.1 and earlier.
2016-02-14 11:23:52 -08:00
Eli Zaretskii
84829495b5 Fix point movement under 'scroll-conservatively'
* src/xdisp.c (redisplay_window): Correct a typo in computing the
effective number of text lines in a window.  (Bug#22637)
2016-02-14 21:20:48 +02:00
Thomas Plass
c1313b5f27 Replace colon in file name (not legal on Windows)
* lisp/doc-view.el (doc-view--current-cache-dir): Replace colon in file
name (not legal on Windows). [tiny change]
2016-02-14 19:56:46 +01:00
Eli Zaretskii
f7af26c5ed Fix a typo in edt.texi
* doc/misc/edt.texi: Fix a typo in an email address.  Reported by
"Herbert J. Skuhra" <herbert@mailbox.org>.
2016-02-14 20:14:32 +02:00
Eli Zaretskii
8badf953da Make 'mmap_realloc' on MS-Windows more reliable
* src/w32heap.c (mmap_alloc): If reserving memory succeeds, but
committing fails, return NULL.  Don't call GetLastError twice for
the same API error.
(mmap_realloc): Zero out MEMORY_BASIC_INFORMATION structures
before calling VirtualQuery, to avoid using garbled values if the
call fails.  If committing more pages from the same block fails,
fall back on mmap_alloc + CopyMemory.  Enhance debugging printouts
if the call to VirtualAlloc to commit more pages fails.
(Bug#22526)
2016-02-14 19:46:29 +02:00
Oscar Fuentes
856cd948d1 Grep alias `all' shall not match parent directory
* lisp/progmodes/grep.el (grep-files-aliases): Don't match parent
  directory for `all'. Fixes bug#22577
2016-02-14 16:20:16 +01:00
Glenn Morris
cc6d906490 ; Auto-commit of ChangeLog files. 2016-02-14 07:26:10 -05:00
Glenn Morris
1af4493b1d ; Auto-commit of loaddefs files. 2016-02-14 07:25:34 -05:00
Nicolas Petton
23ca48d3d8 Bump version to 25.0.91
* README:
* configure.ac:
* msdos/sed2v2.inp: Bump version to 25.0.91.
2016-02-13 20:30:37 +01:00
Nicolas Petton
dacde7ee5d * etc/AUTHORS: Update the AUTHORS file 2016-02-13 20:30:18 +01:00
Nicolas Petton
478ca5de54 ; fix changelog entries 2016-02-13 20:28:54 +01:00
Nicolas Petton
2b7d006460 ; make change-history-commit 2016-02-13 19:29:35 +01:00
Glenn Morris
851decb15e * lisp/dired-aux.el: Require cl-lib. (Bug#22613) 2016-02-13 13:18:17 -05:00
Eli Zaretskii
47896c8446 ; Improve commentary in insdel.c
* src/insdel.c (gap_left, gap_right, make_gap_larger)
(make_gap_smaller): Improve commentary.
2016-02-13 17:48:38 +02:00
Eli Zaretskii
53ca1e1acf Index tilde characters in names of backup files
* doc/emacs/files.texi (Backup Names): Improve indexing.
(Bug#22625)
2016-02-13 15:36:38 +02:00
Eli Zaretskii
d97f522d3d Document deprecation of hi-lock-mode's 'C-x w' bindings
* doc/emacs/display.texi (Highlight Interactively): Deprecate the
"C-x w" bindings of hi-lock-mode.

* etc/NEWS: Mark the deprecation entry as documented.
2016-02-13 11:02:28 +02:00
Xue Fuqiao
b55f06d83d ; * etc/NEWS: Use double spaces to end a sentence. 2016-02-13 13:51:09 +08:00
Stefan Monnier
28bb21439a Announce that the `C-x w' bindings are deprecated 2016-02-12 22:33:30 -05:00
Paul Eggert
1c98f98991 Suppress GNUstep hardening
Fedora 23 normally hardens GNUstep applications, which causes
‘./configure --with-ns’ to break Emacs’s funky way of undumping.
Fix this by eliding the hardening options (Bug#22518).
* src/Makefile.in (LIBS_GNUSTEP): Omit options like
‘-specs=/usr/lib/rpm/redhat/redhat-hardened-ld’.
(GNU_OBJC_CFLAGS): Omit options like
‘-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1’.
2016-02-12 16:24:04 -08:00
Eli Zaretskii
d82f24ba85 Fix redisplay after a large insertion
* src/xdisp.c (redisplay_internal): Don't accept the results of
"optimization 3" if the cursor ends up in a partially visible
glyph row.  (Bug22637)
2016-02-12 21:38:44 +02:00
Andreas Schwab
85a2753d96 Revert "Fix gnus-group-get-new-news-this-group on group with closed server"
This reverts commit 9dc77e37aa.

	* lisp/gnus/nnimap.el (nnimap-change-group): Revert last
	change.  (Bug#22634)
2016-02-12 11:41:29 +01:00
Eli Zaretskii
e8e3bd0ff0 ; Improve merge documentation in CONTRIBUTE
* CONTRIBUTE (branches): Tell how to avoid merging of
non-backported changes.
2016-02-12 09:04:52 +02:00
Paul Eggert
5eb9989f9b * lib-src/make-docfile.c: Include stdarg.h. 2016-02-11 12:51:08 -08:00
Alan Mackenzie
c95ebbf860 Extend gpm-mouse-mode's doc string and doc to point out limitations.
* lisp/t-mouse.el (gpm-mouse-mode): Extend doc string to indicate the
inability to transfer text between Emacs and other programs which use GPM.

* doc/emacs/frames.texi (Text-Only Mouse): Note the inability to transfer text
between Emacs and other progrmas which use GPM.
2016-02-11 09:54:36 +00:00
Eli Zaretskii
a91b4b51dd Revert "Backport: * lisp/isearch.el: Turn char-folding off by default"
* lisp/isearch.el: Turn char-folding back oon by default.

This reverts commit 12c50e82c9.
2016-02-11 05:37:20 +02:00
Lars Ingebrigtsen
f5d6b9bb5b Revert "Support integer image rotation and respect EXIF rotations"
This reverts commit 0f60049605.

This change does not work on Fedora.
2016-02-11 14:05:48 +11:00
Lars Ingebrigtsen
afe7d1f72f Revert "Document EXIF image rotation"
This reverts commit 10b8ed27ec.

This change does not work on Fedora, for instance.
2016-02-11 14:05:48 +11:00
Paul Eggert
c6f377cbae Document OS X LANG default
* doc/emacs/cmdargs.texi (General Variables):
Document OS X Language and Region system preference.
Suggested by Alan Third.
2016-02-10 18:36:05 -08:00
Alan Third
eb4a18c7db Set locale when run from OS X GUI
* src/emacs.c (main): Call ns_init_locale.
* src/nsterm.m (ns_init_locale): Get locale from OS and set LANG.
* src/nsterm.h: Include ns_init_locale.
2016-02-10 18:36:04 -08:00
Paul Eggert
456c0a3137 make-docfile cleanup for I/O, etc.
* lib-src/make-docfile.c (progname, generate_globals, num_globals)
(num_globals_allocated, globals): Now static.
(generate_globals, struct rcsoc_state, read_c_string_or_comment):
(write_c_args, scan_c_stream, search_lisp_doc_at_eol, scan_lisp_file):
Use bool for boolean.
(verror): New function.
(fatal, error): Use it.  API is now like printf.  All callers changed.
(main): Remove err_count local that was always 0.
(main, scan_c_stream, scan_lisp_file): Check for I/O error.
(scan_file, scan_c_file, scan_c_stream, scan_lisp_file):
Return void, not 0.
(put_char, scan_keyword_or_put_char, scan_c_file): Use char for byte.
(scan_keyword_or_put_char): Check for missing ( and unexpected EOF.
(close_emacs_globals): Use ptrdiff_t for index, not int.
(scan_c_file, scan_lisp_file): Exit with failure if file cannot be
opened, rather than diagnosing but exiting with status 0.
(search_lisp_doc_at_eol): Don't worry about ungetc of EOF; it's
portable now.
2016-02-10 11:41:10 -08:00
Paul Eggert
25ec995c06 Memory-management cleanup in make-docfile
I compiled it with -fsanitize=address and fixed the leaks it detected.
Also, I changed it to prefer signed to unsigned integer types,
and to check for integer overflow.
* lib-src/make-docfile.c:
Include <stddef.h>, <stdint.h>, <intprops.h>, <min-max.h>.
(memory_exhausted): New function.
(xmalloc, xrealloc): Use it.
(xmalloc, xrealloc, scan_file, struct rcsoc_state, write_c_args)
(uncompiled, scan_lisp_file):
Prefer signed integer types to unsigned.
(xstrdup): Remove.  All uses removed.
(num_globals, num_globals_allocated, write_globals, scan_c_stream):
Use ptrdiff_t, not int, for indexes that in theory could exceed INT_MAX.
(add_global): Use const to pacify --enable-gcc-warnings.
Make a copy here, rather than relying on strdup calls later.
(add_global, write_globals, scan_c_stream):
Avoid integer overflow when calculating sizes.
(write_globals, scan_c_stream, scan_lisp_file): Avoid memory leak.
(scan_c_stream): Check for add_global failure.
2016-02-10 11:41:10 -08:00
Kevin Gallagher
02d925e9e5 Kevin Gallagher has new email address
* lisp/emulation/edt.el:
* lisp/emulation/edt-lk201.el:
* lisp/emulation/edt-mapper.el:
* lisp/emulation/edt-pc.el:
* lisp/emulation/edt-vt100.el:
* etc/edt-user.el:
* doc/misc/edt.texi: Update Kevin Gallagher's email address.
2016-02-10 20:40:28 +02:00
Eli Zaretskii
4ef153b55a Improve doc strings of 'forward/backward-word-strictly'
* lisp/simple.el (backward-word): Refer to 'backward-word-strictly'
in the doc string.  Suggested by Glenn Morris <rgm@gnu.org>.
* lisp/subr.el (forward-word-strictly, backward-word-strictly):
Mention 'subword-mode' in the doc strings.

* src/syntax.c (Fforward_word): Refer to 'forward-word-strictly'
in the doc string.  (Bug#22560)
2016-02-10 20:30:12 +02:00
Michael Albinus
3ad05a0dc4 Describe Makefile test targets in test/README
* CONTRIBUTE: Move Makefile test targets to test/README.

* Makefile.in:
* test/README: Describe Makefile test targets.
2016-02-10 12:18:30 +01:00
Artur Malabarba
12c50e82c9 Backport: * lisp/isearch.el: Turn char-folding off by default
(search-default-mode): Set default value to nil.
2016-02-10 07:45:02 +00:00
Lars Ingebrigtsen
10b8ed27ec Document EXIF image rotation
* doc/lispref/display.texi (ImageMagick Images): Mention EXIF rotation.
2016-02-10 15:45:46 +11:00
Dima Kogan
0f60049605 Support integer image rotation and respect EXIF rotations
* src/image.c (imagemagick_load_image): Allow integer rotations in
addition to floating point rotations (bug#22591).
* src/image.c (imagemagick_load_image): Images that have an
orientation given in EXIF and have no explicit :rotation tag are now
pre-rotated.  All information such as width/height is reported for the
rotated image.
2016-02-10 15:45:46 +11:00
Matthew Carter
7dd45b61b1 Quote table names for postgres listings (sql-mode)
* lisp/progmodes/sql.el (sql-postgres-completion-object): Avoid passing
  unquoted table names to the completion list.
2016-02-09 22:05:15 -05:00
Juri Linkov
6bac035d60 * lisp/replace.el (replace-match-maybe-edit): Make arg `backward' optional.
Doc fix.
(replace-search, replace-highlight): Make arg `backward' optional.
(Bug#18388)
2016-02-10 02:46:37 +02:00
Juri Linkov
ee909aa2bb * lisp/simple.el (next-line-or-history-element): Reset temporary-goal-column.
(previous-line-or-history-element): Reset temporary-goal-column.
Use end-of-visual-line instead of line-end-position.  (Bug#22544)
2016-02-10 02:31:40 +02:00