Skip to content

Commit 860e4c4

Browse files
eli-schwartzallanmcrae
authored andcommitted
Remove all modelines from the project
Many of these are pointless (e.g. there is no need to explicitly turn on spellchecking and language dictionaries for the manpages by default). The only useful modelines are the ones enforcing the project coding standards for indentation style (and "maybe" filetype/syntax, but everything except the asciidoc manpages and makepkg.conf is already autodetected), and indent style can be applied more easily with .editorconfig Signed-off-by: Eli Schwartz <[email protected]> Signed-off-by: Allan McRae <[email protected]>
1 parent 9aec7c3 commit 860e4c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+0
-276
lines changed

HACKING

-4
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,3 @@ For example, to run valgrind:
194194

195195
./src/pacman/pacman
196196
valgrind --leak-check=full -- src/pacman/.libs/lt-pacman -Syu
197-
198-
/////
199-
vim:set syntax=asciidoc noet spell spelllang=en_us:
200-
/////

Makefile.am

-2
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,3 @@ update-copyright:
6969
done
7070

7171
.PHONY: update-po update-copyright
72-
73-
# vim:set noet:

NEWS

-2
Original file line numberDiff line numberDiff line change
@@ -1258,5 +1258,3 @@ VERSION DESCRIPTION
12581258
backed up, then it will be copied to "file.save"
12591259
- Changed db_find_conflicts() to ignore directories
12601260
1.0 - Initial Release
1261-
1262-
vim: set et spell spelllang=en_us:

configure.ac

-2
Original file line numberDiff line numberDiff line change
@@ -594,5 +594,3 @@ ${PACKAGE_NAME}:
594594
extra warning flags : ${warningflags}
595595
use git version : ${wantgitver}
596596
"
597-
598-
# vim:set noet:

doc/Makefile.am

-2
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,3 @@ install-data-hook:
176176

177177
uninstall-hook:
178178
$(RM) $(DESTDIR)$(mandir)/man8/repo-remove.8
179-
180-
# vim:set noet:

doc/PKGBUILD.5.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/////
2-
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
3-
/////
41
PKGBUILD(5)
52
===========
63

doc/alpm-hooks.5.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/////
2-
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
3-
/////
41
alpm-hooks(5)
52
=============
63

doc/footer.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/////
2-
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
3-
/////
41

52
See the pacman website at https://www.archlinux.org/pacman/[] for current
63
information on pacman and its related tools.

doc/index.txt

-4
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,3 @@ pacman is Copyright (C) 2006-2018 Pacman Development Team
259259
<[email protected]> and Copyright (C) 2002-2006 Judd Vinet
260260
<[email protected]> and is licensed through the GNU General Public License,
261261
version 2 or later.
262-
263-
/////
264-
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
265-
/////

doc/libalpm.3.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/////
2-
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
3-
/////
41
libalpm(3)
52
==========
63

doc/makepkg-template.1.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/////
2-
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
3-
/////
41
makepkg-template(1)
52
===================
63

doc/makepkg.8.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/////
2-
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
3-
/////
41
makepkg(8)
52
==========
63

doc/makepkg.conf.5.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/////
2-
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
3-
/////
41
makepkg.conf(5)
52
===============
63

doc/pacman-key.8.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/////
2-
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
3-
/////
41
pacman-key(8)
52
=============
63

doc/pacman.8.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/////
2-
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
3-
/////
41
pacman(8)
52
=========
63

doc/pacman.conf.5.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/////
2-
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
3-
/////
41
pacman.conf(5)
52
==============
63

doc/pkgdelta.8.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/////
2-
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
3-
/////
41
pkgdelta(8)
52
=========
63

doc/repo-add.8.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/////
2-
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
3-
/////
41
repo-add(8)
52
==========
63

doc/submitting-patches.txt

-4
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,3 @@ aren't their own. When resubmitting patches, update the subject line to reflect
9999
the version number ('[PATCHv2]'), and send it as a reply to the original thread.
100100

101101
--
102-
103-
/////
104-
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
105-
/////

doc/translation-help.txt

-4
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,3 @@ the pacman codebase. However, this is not to say translations are unwelcome. If
151151
someone has experience with i18n man pages and how to best include them with our
152152
source, please contact the pacman-dev mailing list at
153153
154-
155-
/////
156-
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
157-
/////

doc/vercmp.8.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/////
2-
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
3-
/////
41
vercmp(8)
52
=========
63

etc/Makefile.am

-2
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,3 @@ SED_PROCESS = \
2525

2626
%.conf: %.conf.in Makefile
2727
$(SED_PROCESS)
28-
29-
# vim:set noet:

etc/makepkg.conf.in

-2
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,3 @@ COMPRESSZ=(compress -c -f)
142142
#
143143
PKGEXT='@PKGEXT@'
144144
SRCEXT='@SRCEXT@'
145-
146-
# vim: set ft=sh ts=2 sw=2 et:

lib/libalpm/Makefile.am

-2
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,3 @@ libalpm_la_LIBADD = \
7575
$(LIBCURL_LIBS) \
7676
$(LIBSSL_LIBS) \
7777
$(NETTLE_LIBS)
78-
79-
# vim:set noet:

lib/libalpm/add.c

-2
Original file line numberDiff line numberDiff line change
@@ -694,5 +694,3 @@ int _alpm_upgrade_packages(alpm_handle_t *handle)
694694

695695
return ret;
696696
}
697-
698-
/* vim: set noet: */

lib/libalpm/add.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,3 @@
2727
int _alpm_upgrade_packages(alpm_handle_t *handle);
2828

2929
#endif /* ALPM_ADD_H */
30-
31-
/* vim: set noet: */

lib/libalpm/alpm.c

-2
Original file line numberDiff line numberDiff line change
@@ -166,5 +166,3 @@ int SYMEXPORT alpm_capabilities(void)
166166
#endif
167167
| 0;
168168
}
169-
170-
/* vim: set noet: */

lib/libalpm/alpm.h

-2
Original file line numberDiff line numberDiff line change
@@ -1646,5 +1646,3 @@ void alpm_conflict_free(alpm_conflict_t *conflict);
16461646
}
16471647
#endif
16481648
#endif /* ALPM_H */
1649-
1650-
/* vim: set noet: */

lib/libalpm/alpm_list.c

-2
Original file line numberDiff line numberDiff line change
@@ -842,5 +842,3 @@ void SYMEXPORT *alpm_list_to_array(const alpm_list_t *list, size_t n,
842842
}
843843

844844
/** @} */
845-
846-
/* vim: set noet: */

lib/libalpm/alpm_list.h

-2
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,3 @@ void *alpm_list_to_array(const alpm_list_t *list, size_t n, size_t size);
9292
}
9393
#endif
9494
#endif /* ALPM_LIST_H */
95-
96-
/* vim: set noet: */

lib/libalpm/backup.c

-2
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,3 @@ alpm_backup_t *_alpm_backup_dup(const alpm_backup_t *backup)
9898
free(newbackup);
9999
return NULL;
100100
}
101-
102-
/* vim: set noet: */

lib/libalpm/backup.h

-2
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,3 @@ void _alpm_backup_free(alpm_backup_t *backup);
2929
alpm_backup_t *_alpm_backup_dup(const alpm_backup_t *backup);
3030

3131
#endif /* ALPM_BACKUP_H */
32-
33-
/* vim: set noet: */

lib/libalpm/be_local.c

-2
Original file line numberDiff line numberDiff line change
@@ -1166,5 +1166,3 @@ alpm_db_t *_alpm_db_register_local(alpm_handle_t *handle)
11661166
handle->db_local = db;
11671167
return db;
11681168
}
1169-
1170-
/* vim: set noet: */

lib/libalpm/be_package.c

-2
Original file line numberDiff line numberDiff line change
@@ -788,5 +788,3 @@ int SYMEXPORT alpm_pkg_load(alpm_handle_t *handle, const char *filename, int ful
788788

789789
return 0;
790790
}
791-
792-
/* vim: set noet: */

lib/libalpm/be_sync.c

-2
Original file line numberDiff line numberDiff line change
@@ -805,5 +805,3 @@ alpm_db_t *_alpm_db_register_sync(alpm_handle_t *handle, const char *treename,
805805
handle->dbs_sync = alpm_list_add(handle->dbs_sync, db);
806806
return db;
807807
}
808-
809-
/* vim: set noet: */

lib/libalpm/conflict.c

-2
Original file line numberDiff line numberDiff line change
@@ -700,5 +700,3 @@ alpm_list_t *_alpm_db_find_fileconflicts(alpm_handle_t *handle,
700700

701701
return conflicts;
702702
}
703-
704-
/* vim: set noet: */

lib/libalpm/conflict.h

-2
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,3 @@ alpm_list_t *_alpm_db_find_fileconflicts(alpm_handle_t *handle,
3131
alpm_list_t *upgrade, alpm_list_t *remove);
3232

3333
#endif /* ALPM_CONFLICT_H */
34-
35-
/* vim: set noet: */

lib/libalpm/db.c

-2
Original file line numberDiff line numberDiff line change
@@ -726,5 +726,3 @@ alpm_group_t *_alpm_db_get_groupfromcache(alpm_db_t *db, const char *target)
726726

727727
return NULL;
728728
}
729-
730-
/* vim: set noet: */

lib/libalpm/db.h

-2
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,3 @@ alpm_list_t *_alpm_db_get_groupcache(alpm_db_t *db);
112112
alpm_group_t *_alpm_db_get_groupfromcache(alpm_db_t *db, const char *target);
113113

114114
#endif /* ALPM_DB_H */
115-
116-
/* vim: set noet: */

lib/libalpm/delta.c

-2
Original file line numberDiff line numberDiff line change
@@ -359,5 +359,3 @@ alpm_delta_t *_alpm_delta_dup(const alpm_delta_t *delta)
359359
_alpm_delta_free(newdelta);
360360
return NULL;
361361
}
362-
363-
/* vim: set noet: */

lib/libalpm/delta.h

-2
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,3 @@ off_t _alpm_shortest_delta_path(alpm_handle_t *handle, alpm_list_t *deltas,
3131
const char *to, alpm_list_t **path);
3232

3333
#endif /* ALPM_DELTA_H */
34-
35-
/* vim: set noet: */

lib/libalpm/deps.c

-1
Original file line numberDiff line numberDiff line change
@@ -954,4 +954,3 @@ char SYMEXPORT *alpm_dep_compute_string(const alpm_depend_t *dep)
954954

955955
return str;
956956
}
957-
/* vim: set noet: */

lib/libalpm/deps.h

-2
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,3 @@ int _alpm_depcmp_provides(alpm_depend_t *dep, alpm_list_t *provisions);
3939
int _alpm_depcmp(alpm_pkg_t *pkg, alpm_depend_t *dep);
4040

4141
#endif /* ALPM_DEPS_H */
42-
43-
/* vim: set noet: */

lib/libalpm/diskspace.c

-2
Original file line numberDiff line numberDiff line change
@@ -500,5 +500,3 @@ int _alpm_check_diskspace(alpm_handle_t *handle)
500500

501501
return 0;
502502
}
503-
504-
/* vim: set noet: */

lib/libalpm/diskspace.h

-2
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,3 @@ int _alpm_check_downloadspace(alpm_handle_t *handle, const char *cachedir,
6161
size_t num_files, off_t *file_sizes);
6262

6363
#endif /* ALPM_DISKSPACE_H */
64-
65-
/* vim: set noet: */

lib/libalpm/dload.c

-2
Original file line numberDiff line numberDiff line change
@@ -734,5 +734,3 @@ void _alpm_dload_payload_reset_for_retry(struct dload_payload *payload)
734734
payload->unlink_on_fail = 0;
735735
payload->cb_initialized = 0;
736736
}
737-
738-
/* vim: set noet: */

lib/libalpm/dload.h

-2
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,3 @@ int _alpm_download(struct dload_payload *payload, const char *localpath,
5454
char **final_file, const char **final_url);
5555

5656
#endif /* ALPM_DLOAD_H */
57-
58-
/* vim: set noet: */

lib/libalpm/error.c

-2
Original file line numberDiff line numberDiff line change
@@ -164,5 +164,3 @@ const char SYMEXPORT *alpm_strerror(alpm_errno_t err)
164164
return _("unexpected error");
165165
}
166166
}
167-
168-
/* vim: set noet: */

lib/libalpm/filelist.c

-2
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,3 @@ void _alpm_filelist_sort(alpm_filelist_t *filelist)
145145
}
146146
}
147147
}
148-
149-
/* vim: set noet: */

lib/libalpm/filelist.h

-2
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,3 @@ alpm_list_t *_alpm_filelist_intersection(alpm_filelist_t *filesA,
3030
void _alpm_filelist_sort(alpm_filelist_t *filelist);
3131

3232
#endif /* ALPM_FILELIST_H */
33-
34-
/* vim: set noet: */

lib/libalpm/graph.c

-2
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,3 @@ void _alpm_graph_free(void *data)
3636
alpm_list_free(graph->children);
3737
free(graph);
3838
}
39-
40-
/* vim: set noet: */

lib/libalpm/graph.h

-2
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,3 @@ alpm_graph_t *_alpm_graph_new(void);
4242
void _alpm_graph_free(void *data);
4343

4444
#endif /* ALPM_GRAPH_H */
45-
46-
/* vim: set noet: */

lib/libalpm/group.c

-2
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,3 @@ void _alpm_group_free(alpm_group_t *grp)
4949
alpm_list_free(grp->packages);
5050
FREE(grp);
5151
}
52-
53-
/* vim: set noet: */

lib/libalpm/group.h

-2
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,3 @@ alpm_group_t *_alpm_group_new(const char *name);
2626
void _alpm_group_free(alpm_group_t *grp);
2727

2828
#endif /* ALPM_GROUP_H */
29-
30-
/* vim: set noet: */

lib/libalpm/handle.c

-2
Original file line numberDiff line numberDiff line change
@@ -876,5 +876,3 @@ int SYMEXPORT alpm_option_set_disable_dl_timeout(alpm_handle_t *handle,
876876
#endif
877877
return 0;
878878
}
879-
880-
/* vim: set noet: */

lib/libalpm/handle.h

-2
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,3 @@ alpm_errno_t _alpm_set_directory_option(const char *value,
126126
char **storage, int must_exist);
127127

128128
#endif /* ALPM_HANDLE_H */
129-
130-
/* vim: set noet: */

lib/libalpm/hook.c

-2
Original file line numberDiff line numberDiff line change
@@ -782,5 +782,3 @@ int _alpm_hook_run(alpm_handle_t *handle, alpm_hook_when_t when)
782782

783783
return ret;
784784
}
785-
786-
/* vim: set noet: */

lib/libalpm/hook.h

-2
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,3 @@
2525
int _alpm_hook_run(alpm_handle_t *handle, alpm_hook_when_t when);
2626

2727
#endif /* ALPM_HOOK_H */
28-
29-
/* vim: set noet: */

lib/libalpm/libarchive-compat.h

-2
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,3 @@ static inline int _alpm_archive_read_support_filter_all(struct archive *archive)
6969
}
7070

7171
#endif /* LIBARCHIVE_COMPAT_H */
72-
73-
/* vim: set noet: */

lib/libalpm/log.c

-2
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,3 @@ void _alpm_log(alpm_handle_t *handle, alpm_loglevel_t flag, const char *fmt, ...
121121
handle->logcb(flag, fmt, args);
122122
va_end(args);
123123
}
124-
125-
/* vim: set noet: */

lib/libalpm/log.h

-2
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,3 @@ void _alpm_log(alpm_handle_t *handle, alpm_loglevel_t flag,
2828
const char *fmt, ...) __attribute__((format(printf,3,4)));
2929

3030
#endif /* ALPM_LOG_H */
31-
32-
/* vim: set noet: */

lib/libalpm/package.c

-2
Original file line numberDiff line numberDiff line change
@@ -805,5 +805,3 @@ int SYMEXPORT alpm_pkg_should_ignore(alpm_handle_t *handle, alpm_pkg_t *pkg)
805805

806806
return 0;
807807
}
808-
809-
/* vim: set noet: */

lib/libalpm/package.h

-2
Original file line numberDiff line numberDiff line change
@@ -161,5 +161,3 @@ int _alpm_pkg_cmp(const void *p1, const void *p2);
161161
int _alpm_pkg_compare_versions(alpm_pkg_t *local_pkg, alpm_pkg_t *pkg);
162162

163163
#endif /* ALPM_PACKAGE_H */
164-
165-
/* vim: set noet: */

0 commit comments

Comments
 (0)