]> git.eshelyaron.com Git - emacs.git/commit
Don't say Fnext_read_file_uses_dialog_p is const
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Jan 2015 23:22:19 +0000 (15:22 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Jan 2015 23:23:03 +0000 (15:23 -0800)
commit785adfcc8dee02ac544f80e4f7f8d3d5b2965981
tree459b4653c384bd48ea961dbc5da46461a72d90fa
parent564784766297a6f2e06434e2baa7a1d851672a36
Don't say Fnext_read_file_uses_dialog_p is const

It's const only if a windowing system is not used; don't say it's
const otherwise.  See:
http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00310.html
* lib-src/make-docfile.c (write_globals):
Add a special hack for Fnext_read_file_uses_dialog_p.
* src/fileio.c (next_read_file_uses_dialog_p): Remove.
Move guts back to ...
(Fnext_read_file_uses_dialog_p): ... here.
Don't declare as const, as make-docfile.c now has a special case
for this function.  This is an ugly hack, but it's better than
lying to the compiler.
lib-src/ChangeLog
lib-src/make-docfile.c
src/ChangeLog
src/fileio.c