1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-21 18:23:59 +00:00
Commit Graph

121210 Commits

Author SHA1 Message Date
Eli Zaretskii
422f15d9d6 Clarify "co-authored" some more 2015-04-24 18:00:02 +03:00
Eli Zaretskii
b201654076 * CONTRIBUTE: Clarify "co-authored-by". (Bug#20400) 2015-04-24 17:47:23 +03:00
Eli Zaretskii
168609cc1b Clarify doc strings of functions that search for properties
* src/textprop.c (Fnext_char_property_change)
(Fprevious_char_property_change)
(Fnext_single_char_property_change)
(Fprevious_single_char_property_change, Fnext_property_change)
(Fnext_single_property_change, Fprevious_property_change)
(Fprevious_single_property_change): Clarify doc strings wrt return
value and the optional LIMIT argument.  (Bug#20411)
2015-04-24 11:24:56 +03:00
Glenn Morris
a3ac56ca55 * test/automated/message-mode-tests.el (message-mode-propertize):
Handle non-writable HOME; eg on hydra.nixos.org.
2015-04-24 00:10:11 -07:00
Eli Zaretskii
5f8878796e ; * src/keyboard.c (read_event_from_main_queue): Fix indentation. 2015-04-23 10:59:24 +03:00
Eli Zaretskii
f2e2cd5969 Avoid starting threads by w32-shell-execute
* src/w32fns.c (Fw32_shell_execute): Convert "file:///" URLs into
local file names, before invoking ShellExecute.  (Bug#20220)
2015-04-23 10:15:07 +03:00
Martin Rudalics
62fe329762 Fix following doc-links in `widget-documentation-link-action'
* lisp/wid-edit.el (widget-documentation-link-action): Make
following doc-links less simplistic (Bug#20398).
2015-04-23 09:11:59 +02:00
Thomas Fitzsimmons
557c7d6fc6 Improve EUDC manual
* eudc.texi (Troubleshooting): New LDAP troubleshooting subsection.
2015-04-22 22:17:56 -04:00
Paul Eggert
7128b0de89 Omit needless "\ " after multibyte then newline
* src/print.c: Include <c-ctype.h>, for c_isxdigit.
(print_object): When print-escape-multibyte is non-nil and a
multibyte character is followed by a newline or formfeed, followed
by a hex digit, don't output a needless "\ " before the hex digit.
* test/automated/print-tests.el (print-hex-backslash): New test.
2015-04-22 11:00:16 -07:00
Oleh Krehel
df61b07822 Add a new `inhibit-message' variable
* src/xdisp.c (syms_of_xdisp): Define a boolean `inhibit_message'.
(message3): Don't call `message3_nolog' (i.e. use the Echo Area) when
`inhibit_message' is non-zero.

* etc/NEWS: Add an entry.

* doc/lispref/display.texi: Add an entry for `inhibit-message',
  mention it in `message'.
2015-04-22 14:59:43 +02:00
Martin Rudalics
7793db6a76 Fix last fix in `display-buffer-record-window'.
* lisp/window.el (display-buffer-record-window): Fix last fix.
2015-04-22 15:02:22 +02:00
Eli Zaretskii
c4e0ba5155 Minor edits in CONTRIBUTE
* CONTRIBUTE: Rearrange instructions about log messages.
Use "Git" capitalized all over.
Use 2 spaces between sentences.
2015-04-22 14:25:34 +03:00
Artur Malabarba
934968a2ad * lisp/files.el (basic-save-buffer): Fix argument 2015-04-22 11:53:00 +01:00
Artur Malabarba
3beb6b8b86 * lisp/cus-edit.el (custom-file): Consider init-file-had-error
In case `(and (null custom-file) init-file-had-error)' do the same
thing we'd do if `(null user-init-file)', which is to either error out
or return nil.  This is in line with `custom-save-all' which would
throw an error in that situation. (bug#20355)
2015-04-22 11:51:11 +01:00
Artur Malabarba
8991937a74 * lisp/emacs-lisp/package.el: Hide lower-priority packages in menu
(package-menu-hide-low-priority): New variable, see its doc.
(package-archive-priorities): Update doc.
(package-desc-priority): New function.
(package-desc-priority-version): Use it.
(package--remove-hidden): New function.
(package-menu--refresh): Use it.
2015-04-22 11:27:47 +01:00
Artur Malabarba
c3b41c6448 * lisp/emacs-lisp/package.el: Implement displaying obsolete packages
(package-menu--hide-obsolete): New variable.
(package--remove-hidden): Use it.
(package-menu-hide-obsolete): New interactive function to toggle
the variable.
(package--quick-help-keys): Document it.
(package-menu-async): Add :version tag.
(package-menu-mode-map): Bind package-menu-hide-obsolete.
(package-desc-status): Indicate non-installed obsolete packages as
avail-obso.
(package-menu-mark-install): Allow installation of avail-obso.
(package-menu--status-predicate): Sort avail-obso with available.
2015-04-22 11:27:47 +01:00
Glenn Morris
00b73a0865 ; Auto-commit of loaddefs files. 2015-04-22 06:17:45 -04:00
Alan Mackenzie
c5e89be20a On C-y, stop some text property entries being written into buffer-undo-list
lisp/subr.el (remove-yank-excluded-properties): enclose the code in
`with-silent-modifications'.
2015-04-22 09:49:27 +00:00
Martin Rudalics
f974317897 In display-buffer-record-window record selected window if necessary.
* lisp/window.el (display-buffer-record-window): Store selected window
if it differs from 3rd element of 'quit-restore' parameter (Bug#20353).
2015-04-22 11:17:27 +02:00
Tassilo Horn
9b5d3846bb Fix reftex-citation bug
* reftex-cite.el (reftex-extract-bib-entries): Fix
`wrong-type-argument stringp nil' error that occurs when AUCTeX
integration is enabled and there are no citations in the document
so far.
2015-04-22 09:25:54 +02:00
Dmitry Gutov
dbd65c779a Add or reset based on the presence of MERGE_HEAD
* lisp/vc/vc-git.el (vc-git-find-file-hook): Add
`vc-git-resolve-when-done' to `after-save-hook' in either case.
(vc-git-conflicted-files): Add a TODO.
(vc-git-resolve-when-done): Depending on the presence of
MERGE_HEAD, either update the resolved file in the index, or
remove it from there.  (Bug#20292)
2015-04-22 04:59:48 +03:00
Glenn Morris
3f2c8b8264 * lisp/custom.el (custom-declare-group): No need to purecopy
custom-current-group-alist members following recent change to set
it to nil before dumping.
2015-04-21 21:30:54 -04:00
Glenn Morris
b50f9bc964 * build-aux/gitlog-to-emacslog: Get footer from ChangeLog.2.
Fixes: debbugs:20399
2015-04-21 17:57:24 -04:00
Glenn Morris
937b22fe46 ; ChangeLog fix
Reposition local-variables to where most ChangeLogs seem to keep them.
Also helps gitlog-to-emacslog.
2015-04-21 17:56:29 -04:00
Daniel Colascione
4364839ea6 Unbreak no-op buffer save message
* lisp/files.el (save-buffer): Pass interactive flag to `basic-save-buffer`
(basic-save-buffer): Accept called-interactively as an argument instead of
directly invoking called-interactively-p, which will always yield nil
in that context.
2015-04-21 12:26:44 -07:00
Alan Mackenzie
79fa7d7b75 CC Mode: Do nothing in before/after-change-functions for text property changes
Fixes bug#20266.

lisp/progmodes/cc-mode.el (c-basic-common-init): Make
yank-handled-properties buffer local, and remove 'category from it.
(c-called-from-text-property-change-p): New function.
(c-before-change): Don't do anything if a call of the new function
returns non-nil.
(c-after-change): Don't do much if a call of the new function returns
non-nil.
(c-extend-after-change-region): Put changes to text property 'fontified
inside c-save-buffer-state.
2015-04-21 14:02:10 +00:00
Glenn Morris
b01cf822c5 ; Auto-commit of loaddefs files. 2015-04-21 06:18:09 -04:00
Glenn Morris
d870ac2119 ; * test/automated/message-mode-tests.el: Standardize license notice. 2015-04-20 18:59:39 -07:00
Stefan Monnier
c9a75a4030 Fix byte-compiler warnings about looking-back.
* lisp/vc/log-view.el (log-view-end-of-defun-1):
* lisp/textmodes/tex-mode.el (latex-forward-sexp-1):
* lisp/textmodes/reftex-ref.el (reftex-goto-label):
* lisp/textmodes/bibtex.el (bibtex-insert-kill):
* lisp/progmodes/sh-script.el (sh--maybe-here-document):
* lisp/progmodes/ruby-mode.el (ruby-end-of-defun):
* lisp/progmodes/ada-mode.el (ada-in-numeric-literal-p):
* lisp/org/org.el (org-insert-heading, org-sort-entries):
* lisp/org/org-mouse.el (org-mouse-end-headline)
(org-mouse-context-menu):
* lisp/org/org-clock.el (org-clock-cancel):
* lisp/man.el (Man-default-man-entry):
* lisp/mail/rmail.el (rmail-get-new-mail, rmail-insert-inbox-text)
(rmail-ensure-blank-line):
* lisp/mail/footnote.el (Footnote-delete-footnote):
* lisp/mail/emacsbug.el (report-emacs-bug):
* lisp/info.el (Info-follow-reference, Info-fontify-node):
* lisp/info-look.el (info-lookup-guess-custom-symbol):
* lisp/help-fns.el (help-fns--key-bindings):
* lisp/files.el (hack-local-variables):
* lisp/emulation/viper-ex.el (viper-get-ex-token, ex-cmd-complete)
(viper-get-ex-pat, ex-expand-filsyms, viper-get-ex-file)
(viper-complete-filename-or-exit):
* lisp/emulation/viper-cmd.el (viper-backward-indent):
* lisp/emacs-lisp/lisp-mode.el (calculate-lisp-indent):
* lisp/emacs-lisp/elint.el (elint-get-top-forms):
* lisp/cus-edit.el (custom-face-edit-value-create):
* lisp/calendar/todo-mode.el (todo-set-item-priority)
(todo-filter-items-1, todo-convert-legacy-files)
(todo-prefix-overlays): Add explicit second arg to looking-back.
2015-04-20 21:55:00 -04:00
Glenn Morris
e3bfb5191f Avoid non-nil current-load-list at startup
* src/process.c (init_process_emacs): Move Fprovide statement...
(syms_of_process): ... to here.
2015-04-20 20:29:48 -04:00
Glenn Morris
affca0fc84 * lisp/loadup.el (custom-current-group-alist): Reset before dumping. 2015-04-20 18:16:25 -04:00
Glenn Morris
b32683f1df * lisp/startup.el (command-line) <site-run-file>: Avoid rogue value in emacs -Q. 2015-04-20 17:46:24 -04:00
Glenn Morris
83e923bf37 ; * lisp/loadup.el: Comment. 2015-04-20 17:44:59 -04:00
Ludovic Courtès
2fc11b3fa3 * lisp/loadup.el (exec-path): Avoid storing build-time PATH in binary.
Fixes: debbugs:20330
2015-04-20 17:44:23 -04:00
Glenn Morris
b3ff665b2a * lisp/cus-start.el (exec-path): Set standard value, to avoid rogue. 2015-04-20 17:40:32 -04:00
Glenn Morris
cf2e9971ea Tweak exec-path in uninstalled case
* src/callproc.c (init_callproc): If running uninstalled, do not
include eventual installation libexec directory in exec-path.
2015-04-20 17:38:36 -04:00
Artur Malabarba
b7a015f5e0 * lisp/emacs-lisp/package.el: Filter by multiple keywords and cache keywords
(package-menu-filter): Accept a list of keywords.

(package--all-keywords): New variable to cache known keywords.
(package-all-keywords): Populate it if necessary.
(package-refresh-contents): Reset it.
2015-04-20 20:47:18 +01:00
Artur Malabarba
fad6b8a093 * lisp/emacs-lisp/package.el: Make archive and status pseudo-keywords
(package--has-keyword-p): Understand "arc:xxxx" and "status:xxxx"
as special keywords which match agains package archive and status
respectively.

* etc/NEWS: Document it.
2015-04-20 20:47:18 +01:00
Eli Zaretskii
c0f5a3b335 Describe and index "empty overlays".
* doc/lispref/display.texi (Overlays): Improve indexing.
(Managing Overlays): Describe "empty" overlays.
(Overlay Properties, Finding Overlays): Add cross-reference to
where empty overlays are described.
2015-04-20 18:46:11 +03:00
Paul Eggert
8f1eda7a8a Spelling fixes 2015-04-19 23:59:46 -07:00
Paul Eggert
9099d45df7 Quote 'like this' in top-level files
* CONTRIBUTE, INSTALL, Makefile.in, README, configure.ac, make-dist:
Prefer to single-quote 'like this' (instead of the older style
`like this').
* configure.ac: Fix some space-before-tab problems that 'git commit'
complained about.
2015-04-19 14:44:50 -07:00
Paul Eggert
62e170072e Use bool for boolean in textprop.c, undo.c
* src/textprop.c (soft, hard): Now constants instead of macros.
(validate_plist): Rewrite to avoid need for boolean local.
(interval_has_all_properties, interval_has_some_properties)
(interval_has_some_properties_list, add_properties)
(remove_properties, get_char_property_and_overlay)
(Fnext_single_char_property_change)
(Fprevious_single_char_property_change, add_text_properties_1)
(Fremove_text_properties, Fremove_list_of_text_properties)
(copy_text_properties):
* src/tparam.c (tparam1):
* src/undo.c (record_change, record_property_change)
(syms_of_undo):
Use 'true' and 'false' for booleans.
2015-04-19 13:13:52 -07:00
Dmitry Gutov
b5b0e0500e Call `smerge-start-session' even when dealing with a stash conflict
* lisp/vc/vc-git.el (vc-git-find-file-hook):
Call `smerge-start-session' even when dealing with a stash
conflict (bug#20292).
2015-04-19 22:24:39 +03:00
Vibhav Pant
f5076daca0 ; * etc/NEWS: Add "+++" to eshell entry. 2015-04-20 00:17:31 +05:30
Vibhav Pant
d7f1b8af02 Add option to eshell/clear to clear scrollback.
* lisp/eshell/esh-mode.el (eshell/clear-scrollback): New function.
(eshell/clear): Add an optional SCROLLBACK argument. If non-nil,
scrollback contents are cleared.

* etc/NEWS: Describe change.

* doc/misc/eshell.texi: Add entry for `clear'.
2015-04-19 23:26:09 +05:30
Paul Eggert
e5bd39b2b4 * src/widget.c (set_frame_size): Prefer 'int' to 'unsigned'
where either will do.
2015-04-19 10:11:21 -07:00
Steve Purcell
4155619aac Assume package archive-contents are UTF8-encoded
* lisp/emacs-lisp/package.el (package--read-archive-file):
Set `coding-system-for-read' explicitly to 'utf-8 when reading the
downloaded and cached archive-contents files, so that non-ASCII
characters in package descriptions are displayed correctly in the
`list-packages' menu. (Bug#20231)

Co-authored-by: Steve Purcell <steve@sanityinc.com>
2015-04-19 17:56:46 +01:00
Dmitry Gutov
d35f2f4822 Abort when looking at stashed changes
* lisp/vc/vc-git.el (vc-git-find-file-hook): Abort when looking at
stashed changes (bug#20292).
2015-04-19 19:28:17 +03:00
Paul Eggert
96bfe816d8 Refactor low-level printing for simplicity
* src/print.c (PRINTDECLARE): Remove.  Move its contents into
PRINTPREPARE; doable now that we assume C99.  All callers changed.
(PRINTCHAR): Remove, as it adds more mystery than clarity.
All callers changed.
(strout): Assume that caller computes length.  All callers changed.
(print_c_string): New function.
(write_string, write_string_1): Compute length instead of asking
the caller to compute it.  All callers changed.
(write_string): Simplify by using write_string_1.
(write_string_1): Simplify by using print_c_string.
(Fterpri): Compute default val more clearly.
(Fprin1_to_string, print_object):
Assume C99 to avoid unnecessary nesting.
(print_object): Prefer print_c_string to multiple printchar, or
to calling strout with -1 length.  Coalesce into sprintf when
this is easy.
2015-04-19 08:55:36 -07:00
Paul Eggert
65ac8bc6a9 ; Fix more-recent commit messages too 2015-04-18 19:56:03 -07:00